[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15855] trunk/blender/source/gameengine/ Ketsji/KX_Scene.cpp: BGE patch: fix support of group hidden layer in dupli group instantiation: only the objects in layers matching the group layer mask will be instantiated .

Benoit Bolsee benoit.bolsee at online.be
Tue Jul 29 00:36:28 CEST 2008


Revision: 15855
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15855
Author:   ben2610
Date:     2008-07-29 00:36:27 +0200 (Tue, 29 Jul 2008)

Log Message:
-----------
BGE patch: fix support of group hidden layer in dupli group instantiation: only the objects in layers matching the group layer mask will be instantiated. This is equivalent to the 3D view

Modified Paths:
--------------
    trunk/blender/source/gameengine/Ketsji/KX_Scene.cpp

Modified: trunk/blender/source/gameengine/Ketsji/KX_Scene.cpp
===================================================================
--- trunk/blender/source/gameengine/Ketsji/KX_Scene.cpp	2008-07-28 22:10:32 UTC (rev 15854)
+++ trunk/blender/source/gameengine/Ketsji/KX_Scene.cpp	2008-07-28 22:36:27 UTC (rev 15855)
@@ -657,7 +657,7 @@
 			// Should not happen as dupli group are created automatically 
 			continue;
 		}
-		if (blenderobj->lay & group->layer==0)
+		if ((blenderobj->lay & group->layer)==0)
 		{
 			// object is not visible in the 3D view, will not be instantiated
 			continue;





More information about the Bf-blender-cvs mailing list