Draft: Fixed placement bug in clones
This commit is contained in:
parent
0c5484335d
commit
6fe6863001
|
@ -2475,6 +2475,8 @@ def clone(obj,delta=None):
|
||||||
cl.Objects = obj
|
cl.Objects = obj
|
||||||
if delta:
|
if delta:
|
||||||
cl.Placement.move(delta)
|
cl.Placement.move(delta)
|
||||||
|
elif len(obj) == 1:
|
||||||
|
cl.Placement = obj[0].Placement
|
||||||
formatObject(cl,obj[0])
|
formatObject(cl,obj[0])
|
||||||
return cl
|
return cl
|
||||||
|
|
||||||
|
@ -5236,8 +5238,7 @@ class _Clone(_DraftObject):
|
||||||
obj.Placement = shapes[0].Placement
|
obj.Placement = shapes[0].Placement
|
||||||
else:
|
else:
|
||||||
obj.Shape = Part.makeCompound(shapes)
|
obj.Shape = Part.makeCompound(shapes)
|
||||||
if not DraftGeomUtils.isNull(pl):
|
obj.Placement = pl
|
||||||
obj.Placement = pl
|
|
||||||
|
|
||||||
def getSubVolume(self,obj,placement=None):
|
def getSubVolume(self,obj,placement=None):
|
||||||
# this allows clones of arch windows to return a subvolume too
|
# this allows clones of arch windows to return a subvolume too
|
||||||
|
|
Loading…
Reference in New Issue
Block a user