[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36543] trunk/blender/source/gameengine/ Converter/BL_BlenderDataConversion.cpp: Committing patch [#27133] " Fix for for Object Color in BGE" by Kupoman

Mitchell Stokes mogurijin at gmail.com
Sun May 8 05:42:25 CEST 2011


Revision: 36543
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36543
Author:   moguri
Date:     2011-05-08 03:42:24 +0000 (Sun, 08 May 2011)
Log Message:
-----------
Committing patch [#27133] "Fix for for Object Color in BGE" by Kupoman

The tracker description:
"This patch fixes this bug:
http://projects.blender.org/tracker/index.php?func=detail&aid=25487&group_id=9&atid=306

This was accomplished by making sure the KX_GameObject's object color gets set during the conversion process in the method gameobject_from_blenderobject. Otherwise all the values for object color default to 0. The reason adding an IPO worked as a work around is because it set the object color."

The bug report mentioned is bug [#25487] "BGE: Object Color only works when it has a keyed frame"

Modified Paths:
--------------
    trunk/blender/source/gameengine/Converter/BL_BlenderDataConversion.cpp

Modified: trunk/blender/source/gameengine/Converter/BL_BlenderDataConversion.cpp
===================================================================
--- trunk/blender/source/gameengine/Converter/BL_BlenderDataConversion.cpp	2011-05-07 22:28:56 UTC (rev 36542)
+++ trunk/blender/source/gameengine/Converter/BL_BlenderDataConversion.cpp	2011-05-08 03:42:24 UTC (rev 36543)
@@ -1831,6 +1831,7 @@
 	{
 		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);
 	}




More information about the Bf-blender-cvs mailing list