Sketcher: Increase multiplicity command - no creation of unsolicited internal geometry

This commit is contained in:
Abdullah Tahiri
2017-03-17 14:21:20 +01:00
committed by wmayer
parent 3fa87fd1d8
commit debff30d92

View File

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