Fix transformCopy

Caused PopulateCopies to not work when used with one placement.
This commit is contained in:
DeepSOIC 2016-08-21 01:20:32 +03:00
parent 477d063a9b
commit 0ee94559ac

View File

@ -67,7 +67,7 @@ def transformCopy(shape, extra_placement = None):
if extra_placement is None:
extra_placement = FreeCAD.Placement()
ret = shape.copy()
ret.transformShape(extra_placement.multiply(ret.Placement).toMatrix())
ret.transformShape(extra_placement.multiply(ret.Placement).toMatrix(), True)
ret.Placement = FreeCAD.Placement() #reset placement
return ret