BGE patch: fix support of group hidden layer in dupli group instantiation: only the...
authorBenoit Bolsee <benoit.bolsee@online.be>
Mon, 28 Jul 2008 22:36:27 +0000 (22:36 +0000)
committerBenoit Bolsee <benoit.bolsee@online.be>
Mon, 28 Jul 2008 22:36:27 +0000 (22:36 +0000)
source/gameengine/Ketsji/KX_Scene.cpp

index 2d84d8f035d616f7f99a93418efc6b6fd6dbd6c6..648a6ca31d57ca673719521843fadf4944d23a75 100644 (file)
@@ -657,7 +657,7 @@ void KX_Scene::DupliGroupRecurse(CValue* obj, int level)
                        // 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;