forked from bartvdbraak/blender
revert commit 27133: Committing patch [#27133] "Fix for for Object Color in BGE" by Kupoman
This was causing a lot of backward compatibility problems and side effects. It has to be done properly, linked with Material ObjectColor shader_flag or at least the TF OBCOLOR (which apparently worked at some point so I've been told). If you need to use OBCOLOR simply keyframe the obcolor and it will work as before.
This commit is contained in:
parent
c518aa1383
commit
0c8311fdf9
@ -1840,7 +1840,6 @@ 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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user