Sketcher: Point DSH : remove unecessary "toggleConstruction(%d)",

This commit is contained in:
PaddleStroke
2024-09-03 18:27:34 +02:00
parent 5697087aab
commit 2e38cbdf3a

View File

@@ -81,15 +81,10 @@ private:
try {
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Add sketch point"));
Gui::cmdAppObjectArgs(sketchgui->getObject(),
"addGeometry(Part.Point(App.Vector(%f,%f,0)))",
"addGeometry(Part.Point(App.Vector(%f,%f,0)), %s)",
editPoint.x,
editPoint.y);
if (isConstructionMode()) {
Gui::cmdAppObjectArgs(sketchgui->getObject(),
"toggleConstruction(%d)",
getHighestCurveIndex());
}
editPoint.y,
isConstructionMode() ? "True" : "False");
Gui::Command::commitCommand();
}