From 62460a0334b19cdc76e239146153fb8ffd720d95 Mon Sep 17 00:00:00 2001 From: Morimiue <41257880+Morimiue@users.noreply.github.com> Date: Tue, 10 Sep 2024 00:31:13 +0800 Subject: [PATCH] Sketcher: transfer constraints on conic's mid point to the newly created conic arc (e.g. ellipse arc)" -m "Fixes #15860" -m "When spliting a sketch curve, constraints on the original curve are transferred to the newly created curve. The original code did not consider the constraints on the center point of an ellipse arc. --- src/Mod/Sketcher/App/SketchObject.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index 177a73aa5e..e30ced754c 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -4198,8 +4198,9 @@ int SketchObject::split(int GeoId, const Base::Vector3d& point) // TODO: Do we apply constraints on center etc of the conics? - // transfer constraints from start and end of original + // transfer constraints from start, mid and end of original transferConstraints(GeoId, PointPos::start, newId0, PointPos::start, true); + transferConstraints(GeoId, PointPos::mid, newId0, PointPos::mid); transferConstraints(GeoId, PointPos::end, newId1, PointPos::end, true); }); }