Changed Rotate tool behaviour to rotate the entire selection group instead of each one individually.

This commit is contained in:
Markus Lampert
2018-09-15 18:09:18 -07:00
committed by wmayer
parent f9c166f6ec
commit cb2afd5a98

View File

@@ -877,8 +877,9 @@ class TaskPanel:
def modelRotate(self, axis):
angle = self.form.modelRotateValue.value()
with selectionEx() as selection:
bb = PathStock.shapeBoundBox([sel.Object for sel in selection])
for sel in selection:
Draft.rotate(sel.Object, angle, sel.Object.Shape.BoundBox.Center, axis)
Draft.rotate(sel.Object, angle, bb.Center, axis)
def alignSetOrigin(self):
(obj, by) = self.alignMoveToOrigin()