From 4f93df136bed1e103f8e0a204cbf58c498cbb20a Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Tue, 3 Sep 2024 18:28:54 +0200 Subject: [PATCH] Sketcher: CommandConstraints: Make sure points are created as constructions in few functions. --- src/Mod/Sketcher/Gui/CommandConstraints.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Mod/Sketcher/Gui/CommandConstraints.cpp b/src/Mod/Sketcher/Gui/CommandConstraints.cpp index cc38f23b54..2b74ad7faf 100644 --- a/src/Mod/Sketcher/Gui/CommandConstraints.cpp +++ b/src/Mod/Sketcher/Gui/CommandConstraints.cpp @@ -406,7 +406,7 @@ void SketcherGui::makeTangentToEllipseviaNewPoint(Sketcher::SketchObject* Obj, try { // Add a point - Gui::cmdAppObjectArgs(Obj, "addGeometry(Part.Point(App.Vector(%f,%f,0)))", PoE.x, PoE.y); + Gui::cmdAppObjectArgs(Obj, "addGeometry(Part.Point(App.Vector(%f,%f,0)), True)", PoE.x, PoE.y); int GeoIdPoint = Obj->getHighestCurveIndex(); // Point on first object @@ -486,7 +486,7 @@ void SketcherGui::makeTangentToArcOfEllipseviaNewPoint(Sketcher::SketchObject* O try { // Add a point - Gui::cmdAppObjectArgs(Obj, "addGeometry(Part.Point(App.Vector(%f,%f,0)))", PoE.x, PoE.y); + Gui::cmdAppObjectArgs(Obj, "addGeometry(Part.Point(App.Vector(%f,%f,0)), True)", PoE.x, PoE.y); int GeoIdPoint = Obj->getHighestCurveIndex(); // Point on first object @@ -583,7 +583,7 @@ void SketcherGui::makeTangentToArcOfHyperbolaviaNewPoint(Sketcher::SketchObject* try { // Add a point - Gui::cmdAppObjectArgs(Obj, "addGeometry(Part.Point(App.Vector(%f,%f,0)))", PoH.x, PoH.y); + Gui::cmdAppObjectArgs(Obj, "addGeometry(Part.Point(App.Vector(%f,%f,0)), True)", PoH.x, PoH.y); int GeoIdPoint = Obj->getHighestCurveIndex(); // Point on first object @@ -673,7 +673,7 @@ void SketcherGui::makeTangentToArcOfParabolaviaNewPoint(Sketcher::SketchObject* try { // Add a point - Gui::cmdAppObjectArgs(Obj, "addGeometry(Part.Point(App.Vector(%f,%f,0)))", PoP.x, PoP.y); + Gui::cmdAppObjectArgs(Obj, "addGeometry(Part.Point(App.Vector(%f,%f,0)), True)", PoP.x, PoP.y); int GeoIdPoint = Obj->getHighestCurveIndex(); // Point on first object @@ -6150,7 +6150,7 @@ void CmdSketcherConstrainPerpendicular::activated(int iMsg) try { // Add a point Gui::cmdAppObjectArgs(Obj, - "addGeometry(Part.Point(App.Vector(%f,%f,0)))", + "addGeometry(Part.Point(App.Vector(%f,%f,0)), True)", PoO.x, PoO.y); int GeoIdPoint = Obj->getHighestCurveIndex(); @@ -6351,7 +6351,7 @@ void CmdSketcherConstrainPerpendicular::applyConstraint(std::vector& try { // Add a point Gui::cmdAppObjectArgs(Obj, - "addGeometry(Part.Point(App.Vector(%f,%f,0)))", + "addGeometry(Part.Point(App.Vector(%f,%f,0)), True)", PoO.x, PoO.y); int GeoIdPoint = Obj->getHighestCurveIndex();