From 2605aec5b0d971ea20abf2aafa466e1c6f2cc471 Mon Sep 17 00:00:00 2001 From: azv Date: Tue, 28 Feb 2017 17:07:23 +0300 Subject: [PATCH] Fix wrong DoF when split line with a point on it --- src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp | 6 ++++++ src/SketchSolver/SketchSolver_ConstraintCoincidence.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp b/src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp index 8501289fd..c2f35d24e 100644 --- a/src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp @@ -32,6 +32,12 @@ void SketchSolver_ConstraintCoincidence::process() myStorage->notify(myBaseConstraint); } +bool SketchSolver_ConstraintCoincidence::remove() +{ + myInSolver = false; + return SketchSolver_Constraint::remove(); +} + void SketchSolver_ConstraintCoincidence::getAttributes( EntityWrapperPtr& theValue, std::vector& theAttributes) diff --git a/src/SketchSolver/SketchSolver_ConstraintCoincidence.h b/src/SketchSolver/SketchSolver_ConstraintCoincidence.h index 46828e9ed..9169f0021 100644 --- a/src/SketchSolver/SketchSolver_ConstraintCoincidence.h +++ b/src/SketchSolver/SketchSolver_ConstraintCoincidence.h @@ -27,6 +27,9 @@ public: virtual void notify(const FeaturePtr& theFeature, PlaneGCSSolver_Update* theUpdater); + /// \brief Remove constraint + virtual bool remove(); + protected: /// \brief Converts SketchPlugin constraint to a list of SolveSpace constraints virtual void process(); -- 2.39.2