Draft: Fixed regression in Rotate tool

This commit is contained in:
Yorik van Havre
2019-12-17 15:30:31 -03:00
parent d10ca28c88
commit 4e167f32bb

View File

@@ -1789,7 +1789,7 @@ def rotate(objectslist,angle,center=Vector(0,0,0),axis=Vector(0,0,1),copy=False)
newobj = makeCopy(obj)
else:
newobj = obj
if hasattr(obj,'Shape') and (getType(obj) not in ["WorkingPlaneProxy"]):
if hasattr(obj,'Shape') and (getType(obj) not in ["WorkingPlaneProxy","BuildingPart"]):
shape = obj.Shape.copy()
shape.rotate(DraftVecUtils.tup(center), DraftVecUtils.tup(axis), angle)
newobj.Shape = shape