From caf78bbabface3ba6af61a5a3f833098f2293b1c Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 30 Sep 2018 18:14:22 +0200 Subject: [PATCH] fixes 0003509: Create MultiTransform Feature from existing Transform Feature forces document migration --- src/Mod/PartDesign/Gui/Command.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/Gui/Command.cpp b/src/Mod/PartDesign/Gui/Command.cpp index 0e9fcef57d..9fba82fe0a 100644 --- a/src/Mod/PartDesign/Gui/Command.cpp +++ b/src/Mod/PartDesign/Gui/Command.cpp @@ -2122,10 +2122,19 @@ void CmdPartDesignMultiTransform::activated(int iMsg) openCommand("Convert to MultiTransform feature"); doCommand(Gui, "FreeCADGui.runCommand('PartDesign_MoveTip')"); + // We cannot remove the Transform feature from the body as otherwise + // we will have a PartDesign feature without a body which is not allowed + // and causes to pop up the migration dialog later when adding new features + // to the body. + // Additionally it creates the error message: "Links go out of the allowed scope" + // #0003509 +#if 0 // Remove the Transformed feature from the Body - if(pcActiveBody) + if (pcActiveBody) { doCommand(Doc, "App.activeDocument().%s.removeObject(App.activeDocument().%s)", pcActiveBody->getNameInDocument(), trFeat->getNameInDocument()); + } +#endif // Create a MultiTransform feature and move the Transformed feature inside it std::string FeatName = getUniqueObjectName("MultiTransform");