texface fix: if material is not used by mesh set default bge mat flag (backface culling on)

report by Mitchell Stokes over IRC, but probably one of the reason people have been asking
to expose the Game Settings material panel in the Render engine as well.
This commit is contained in:
Dalai Felinto 2011-10-06 06:56:45 +00:00
parent 0d2b936d62
commit be143cc037

@ -1995,6 +1995,11 @@ int do_version_tface(Main *main, int fileload)
}
}
}
/* material is not used by faces with texface
* set the default flag - do it only once */
else
if (fileload)
ma->game.flag = GEMAT_BACKCULL;
}
return nowarning;