Problem with mesh drawing in viewport when ma->game.flag & GEMAT_INVISIBLE
Closed, InvalidPublic

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
Dalai Felinto (dfelinto) claimed this task.

We need a way to preview the materials in the viewport before running the game. Although this behaviour is strange since a BGE setting end up influencing the viewport for BI and Cycles, it's just a downside of the design.

And since we are changing all of this for Blender 2.8 I think it makes no sense to change this behaviour in master. I'm closing it as invalid, but if you can get other developers behind it (e.g., @Campbell Barton (campbellbarton)) feel free to re-open this issue.