From: sbh Date: Thu, 2 Apr 2015 07:49:13 +0000 (+0300) Subject: Fix for runtime error in libSketchSolver.so X-Git-Tag: V_1.1.0~57^2~25^2~3^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8ea06fd848a1ad300906dd629a43ce3c4dff04f0;p=modules%2Fshaper.git Fix for runtime error in libSketchSolver.so --- diff --git a/src/SketchSolver/SketchSolver_ConstraintGroup.cpp b/src/SketchSolver/SketchSolver_ConstraintGroup.cpp index b5a33d8d2..2dc2db4ac 100644 --- a/src/SketchSolver/SketchSolver_ConstraintGroup.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintGroup.cpp @@ -507,10 +507,7 @@ bool SketchSolver_ConstraintGroup::changeRigidConstraint( std::dynamic_pointer_cast(aConstrAttr->attr()); std::shared_ptr aPoint2D = std::dynamic_pointer_cast(aConstrAttr->attr()); -// std::shared_ptr aSketchPoint = -// std::dynamic_pointer_cast(aFeature); -// if (aPoint || aPoint2D || aSketchPoint) { - if (aPoint || aPoint2D) { + if (aPoint || aPoint2D || aFeature->getKind() == SketchPlugin_Point::ID()) { // Create SolveSpace constraint structure Slvs_Constraint aConstraint = Slvs_MakeConstraint( ++myConstrMaxID, myID, aConstrType, myWorkplane.h, 0.0,