From: azv Date: Fri, 27 Mar 2015 08:06:17 +0000 (+0300) Subject: Issue #393: Fix the problem with Distance between two separate fixed points X-Git-Tag: V_1.1.0~75^2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=53acd03c9716bf3d4c4f4b04b558ffde7a29f7cd;p=modules%2Fshaper.git Issue #393: Fix the problem with Distance between two separate fixed points --- 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,