Skip to content

Commit

Permalink
[Draft] getGroupContents and App::Part
Browse files Browse the repository at this point in the history
App::Part contained objects should not be moved if also App::Part is moved
  • Loading branch information
carlopav committed Dec 29, 2019
1 parent 646a480 commit 8797024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Draft/Draft.py
Expand Up @@ -420,7 +420,7 @@ def getWindows(obj):
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)
Expand Down

0 comments on commit 8797024

Please sign in to comment.