From fe357336e0d9a7c4160ff7b4ede8e263872ba8e8 Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Mon, 7 May 2018 21:01:50 -0700 Subject: [PATCH] Maintain center of rotation for compound objects. --- src/Mod/Path/App/FeaturePathCompound.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/App/FeaturePathCompound.cpp b/src/Mod/Path/App/FeaturePathCompound.cpp index 1b3740f547..1c66ce14f2 100644 --- a/src/Mod/Path/App/FeaturePathCompound.cpp +++ b/src/Mod/Path/App/FeaturePathCompound.cpp @@ -64,10 +64,12 @@ App::DocumentObjectExecReturn *FeatureCompound::execute(void) result.addCommand(**it2); } } - }else + } else { return new App::DocumentObjectExecReturn("Not all objects in group are paths!"); + } } + result.setCenter(Path.getValue().getCenter()); Path.setValue(result); return App::DocumentObject::StdReturn;