Draft: fixed minor bug

This commit is contained in:
Yorik van Havre
2019-12-12 14:11:59 -03:00
parent c6702814fe
commit 39ee1654f9

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 (Draft.getType(obj) not in ["WorkingPlaneProxy"]):
if hasattr(obj,'Shape') and (getType(obj) not in ["WorkingPlaneProxy"]):
shape = obj.Shape.copy()
shape.rotate(DraftVecUtils.tup(center), DraftVecUtils.tup(axis), angle)
newobj.Shape = shape