[Draft] getGroupContents and App::Part
App::Part contained objects should not be moved if also App::Part is moved
This commit is contained in:
@@ -420,7 +420,7 @@ def getGroupContents(objectslist,walls=False,addgroups=False,spaces=False,noarch
|
||||
objectslist = [objectslist]
|
||||
for obj in objectslist:
|
||||
if obj:
|
||||
if obj.isDerivedFrom("App::DocumentObjectGroup") or ((getType(obj) in ["App::Part","Building","BuildingPart","Space","Site"]) and hasattr(obj,"Group")):
|
||||
if obj.isDerivedFrom("App::DocumentObjectGroup") or ((getType(obj) in ["Building","BuildingPart","Space","Site"]) and hasattr(obj,"Group")):
|
||||
if getType(obj) == "Site":
|
||||
if obj.Shape:
|
||||
newlist.append(obj)
|
||||
|
||||
Reference in New Issue
Block a user