Maintain center of rotation for compound objects.

This commit is contained in:
Markus Lampert
2018-05-07 21:01:50 -07:00
committed by Yorik van Havre
parent c4bd67724c
commit fe357336e0

View File

@@ -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;