Problem with mesh drawing in viewport when ma->game.flag & GEMAT_INVISIBLE
Open, Needs TriagePublic

Description

System Information
Windows 10 GTX 970

Blender Version
Broken: last master 8ff2c14
Worked: (optional)

Short description of error
Material game.flag & GEMAT_INVISIBLE influence mesh drawing in the viewport

Exact steps for others to reproduce the error
test .blend: http://pasteall.org/blend/index.php?id=47329
try to select the object with no texture -> impossible to select

Fix proposed
I propose to remove influence of this flag on mesh drawing in the viewport (I can be wrong but I thought it should only influence mesh drawing at bge runtime)
patch (made from upbge sources): http://pasteall.org/495383/diff

Details

Type
Bug