diff --git a/src/Mod/Sketcher/App/PropertyConstraintList.cpp b/src/Mod/Sketcher/App/PropertyConstraintList.cpp index 28614ee6e2..6638c0a6ca 100644 --- a/src/Mod/Sketcher/App/PropertyConstraintList.cpp +++ b/src/Mod/Sketcher/App/PropertyConstraintList.cpp @@ -235,9 +235,8 @@ void PropertyConstraintList::checkGeometry(const std::vector & } if (invalidGeometry) { - aboutToSetValue(); invalidGeometry = false; - hasSetValue(); + touch(); } } diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index f52c83de29..fccdf21b1b 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -708,6 +708,7 @@ int SketchObject::trim(int GeoId, const Base::Vector3d& point) std::vector< Part::Geometry * > newVals(geomlist); newVals[GeoId] = geoNew; Geometry.setValues(newVals); + Constraints.acceptGeometry(Geometry.getValues()); delete geoNew; rebuildVertexIndex(); @@ -756,8 +757,6 @@ int SketchObject::trim(int GeoId, const Base::Vector3d& point) delete newConstr; - Constraints.acceptGeometry(Geometry.getValues()); - return 0; }