From 23ecf94ab63c7ece5c8e85081757c549fa33934c Mon Sep 17 00:00:00 2001 From: Ajinkya Dahale Date: Fri, 14 Mar 2025 11:12:12 +0530 Subject: [PATCH] [Sketcher] Make trimmed curve(s) construction based on original --- src/Mod/Sketcher/App/SketchObject.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index 6235f0a5cf..c8e45f45db 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -3852,6 +3852,7 @@ int SketchObject::trim(int GeoId, const Base::Vector3d& point) // FIXME: we should be able to transfer these to new curves smoothly // auto geo = getGeometry(GeoId); const auto* geoAsCurve = getGeometry(GeoId); + bool isOriginalCurveConstruction = GeometryFacade::getConstruction(geoAsCurve); //******************* Step A => Detection of intersection - Common to all Geometries //****************************************// @@ -4007,6 +4008,9 @@ int SketchObject::trim(int GeoId, const Base::Vector3d& point) } replaceGeometries({GeoId}, newGeos); + for (auto newId : newIds) { + setConstruction(newId, isOriginalCurveConstruction); + } if (noRecomputes) { solve();