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

This commit is contained in:
Benoit Bolsee 2008-07-28 22:36:27 +00:00
parent 3120af6f34
commit b0c513e83a
1 changed files with 1 additions and 1 deletions

View 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;