Committing patch [#27133] "Fix for for Object Color in BGE" by Kupoman
[blender.git] / source / gameengine / Converter / BL_BlenderDataConversion.cpp
index 51ab4e4c3996f1cdca808bce632747186d8deecb..a4fa91469a185ba5275cd787762f2abad10df9db 100644 (file)
@@ -1831,6 +1831,7 @@ static KX_GameObject *gameobject_from_blenderobject(
        {
                gameobj->SetLayer(ob->lay);
                gameobj->SetBlenderObject(ob);
+               gameobj->SetObjectColor(ob->col);
                /* set the visibility state based on the objects render option in the outliner */
                if(ob->restrictflag & OB_RESTRICT_RENDER) gameobj->SetVisible(0, 0);
        }