From: azv Date: Tue, 28 Feb 2017 14:07:23 +0000 (+0300) Subject: Fix wrong DoF when split line with a point on it X-Git-Tag: V_2.7.0~261 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2605aec5b0d971ea20abf2aafa466e1c6f2cc471;p=modules%2Fshaper.git Fix wrong DoF when split line with a point on it --- 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();