From 53acd03c9716bf3d4c4f4b04b558ffde7a29f7cd Mon Sep 17 00:00:00 2001 From: azv Date: Fri, 27 Mar 2015 11:06:17 +0300 Subject: [PATCH] Issue #393: Fix the problem with Distance between two separate fixed points --- src/SketchSolver/SketchSolver_ConstraintGroup.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SketchSolver/SketchSolver_ConstraintGroup.cpp b/src/SketchSolver/SketchSolver_ConstraintGroup.cpp index d7f2409d1..9b0ae4325 100644 --- a/src/SketchSolver/SketchSolver_ConstraintGroup.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintGroup.cpp @@ -507,7 +507,9 @@ bool SketchSolver_ConstraintGroup::changeRigidConstraint( std::dynamic_pointer_cast(aConstrAttr->attr()); std::shared_ptr aPoint2D = std::dynamic_pointer_cast(aConstrAttr->attr()); - if (aPoint || aPoint2D) { + std::shared_ptr aSketchPoint = + std::dynamic_pointer_cast(aFeature); + if (aPoint || aPoint2D || aSketchPoint) { // Create SolveSpace constraint structure Slvs_Constraint aConstraint = Slvs_MakeConstraint( ++myConstrMaxID, myID, aConstrType, myWorkplane.h, 0.0, -- 2.39.2