From debff30d92bcb9a402109fb7e66207fbde021020 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Fri, 17 Mar 2017 14:21:20 +0100 Subject: [PATCH] Sketcher: Increase multiplicity command - no creation of unsolicited internal geometry --- src/Mod/Sketcher/Gui/CommandSketcherBSpline.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/Mod/Sketcher/Gui/CommandSketcherBSpline.cpp b/src/Mod/Sketcher/Gui/CommandSketcherBSpline.cpp index 5407da2409..7916b78b24 100644 --- a/src/Mod/Sketcher/Gui/CommandSketcherBSpline.cpp +++ b/src/Mod/Sketcher/Gui/CommandSketcherBSpline.cpp @@ -540,16 +540,11 @@ void CmdSketcherIncreaseKnotMultiplicity::activated(int iMsg) Gui::Command::doCommand( Doc,"App.ActiveDocument.%s.modifyBSplineKnotMultiplicity(%d,%d,%d) ", selection[0].getFeatName(),(*it)->Second, (*it)->InternalAlignmentIndex + 1, 1); - - Obj->solve(); - - // add internalalignment for new pole - Gui::Command::doCommand(Gui::Command::Doc, - "App.ActiveDocument.%s.exposeInternalGeometry(%d)", - selection[0].getFeatName(), - (*it)->Second); - + applied = true; + + // Warning: GeoId list might have changed as the consequence of deleting pole circles and + // particularly bspline GeoID might have changed. } catch (const Base::Exception& e) { Base::Console().Error("%s\n", e.what());