diff --git a/src/Mod/PartDesign/Gui/Command.cpp b/src/Mod/PartDesign/Gui/Command.cpp index 462cb3447..50a5abd03 100644 --- a/src/Mod/PartDesign/Gui/Command.cpp +++ b/src/Mod/PartDesign/Gui/Command.cpp @@ -357,6 +357,8 @@ void CmdPartDesignMoveFeature::activated(int iMsg) // Add to target body (always at the Tip) doCommand(Doc,"App.activeDocument().%s.addFeature(App.activeDocument().%s)", target->getNameInDocument(), (*f)->getNameInDocument()); + // Recompute to update the shape + doCommand(Gui,"App.activeDocument().recompute()"); // Adjust visibility of features if (PartDesign::Body::isSolidFeature(*f)) { diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp index 468ca2249..bae6159f2 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp @@ -4563,13 +4563,13 @@ void ViewProviderSketch::unsetEdit(int ModNum) delete edit; edit = 0; - } - try { - // and update the sketch - getSketchObject()->getDocument()->recompute(); - } - catch (...) { + try { + // and update the sketch + getSketchObject()->getDocument()->recompute(); + } + catch (...) { + } } // clear the selection and set the new/edited sketch(convenience)