diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2008-07-29 02:36:27 +0400 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2008-07-29 02:36:27 +0400 |
commit | b0c513e83a638533b117d8b14b169b4fdd7a0369 (patch) | |
tree | 567fa8f70d626c328da64ee3ca8edd2a6e25e5ab | |
parent | 3120af6f34b3c2dc5007eb8bb4d1031d6b6dfde0 (diff) |
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
-rw-r--r-- | source/gameengine/Ketsji/KX_Scene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_Scene.cpp b/source/gameengine/Ketsji/KX_Scene.cpp index 2d84d8f035d..648a6ca31d5 100644 --- a/source/gameengine/Ketsji/KX_Scene.cpp +++ b/source/gameengine/Ketsji/KX_Scene.cpp @@ -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; |