Skip to content

Commit

Permalink
Draft: Fixed placement bug in clones
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Feb 27, 2016
1 parent 0c54843 commit 6fe6863
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Mod/Draft/Draft.py
Expand Up @@ -2475,6 +2475,8 @@ def clone(obj,delta=None):
cl.Objects = obj
if delta:
cl.Placement.move(delta)
elif len(obj) == 1:
cl.Placement = obj[0].Placement
formatObject(cl,obj[0])
return cl

Expand Down Expand Up @@ -5236,8 +5238,7 @@ def execute(self,obj):
obj.Placement = shapes[0].Placement
else:
obj.Shape = Part.makeCompound(shapes)
if not DraftGeomUtils.isNull(pl):
obj.Placement = pl
obj.Placement = pl

def getSubVolume(self,obj,placement=None):
# this allows clones of arch windows to return a subvolume too
Expand Down

0 comments on commit 6fe6863

Please sign in to comment.