From cb2afd5a98f905bfd9da3333d5c8a7b6fc9afdb6 Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Sat, 15 Sep 2018 18:09:18 -0700 Subject: [PATCH] Changed Rotate tool behaviour to rotate the entire selection group instead of each one individually. --- src/Mod/Path/PathScripts/PathJobGui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/PathJobGui.py b/src/Mod/Path/PathScripts/PathJobGui.py index 228d2d3c5f..e12b9df9cf 100644 --- a/src/Mod/Path/PathScripts/PathJobGui.py +++ b/src/Mod/Path/PathScripts/PathJobGui.py @@ -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()