Bug fix #34157
authorTon Roosendaal <ton@blender.org>
Sat, 9 Feb 2013 12:30:42 +0000 (12:30 +0000)
committerTon Roosendaal <ton@blender.org>
Sat, 9 Feb 2013 12:30:42 +0000 (12:30 +0000)
Tss tss! :)
This bug (since Jan 26) made Material options get cleared on using GE once.

source/gameengine/Converter/BL_BlenderDataConversion.cpp

index 8b81abf..e5503df 100644 (file)
@@ -1982,7 +1982,7 @@ static KX_GameObject *gameobject_from_blenderobject(
                for (int i=0;i<mesh->totcol;i++) {
                        mat=mesh->mat[i];
                        if (!mat) break;
                for (int i=0;i<mesh->totcol;i++) {
                        mat=mesh->mat[i];
                        if (!mat) break;
-                       if ((mat->shade_flag &= MA_OBCOLOR)) {
+                       if ((mat->shade_flag & MA_OBCOLOR)) {
                                bUseObjectColor = true;
                                break;
                        }
                                bUseObjectColor = true;
                                break;
                        }