forked from bartvdbraak/blender
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:
parent
3120af6f34
commit
b0c513e83a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user