Two minor fixes

This commit is contained in:
jrheinlaender 2013-07-16 20:53:31 +02:00 committed by Stefan Tröger
parent 4d674831d3
commit 7174a259f0
2 changed files with 8 additions and 6 deletions

View File

@ -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)) {

View File

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