From 8ea06fd848a1ad300906dd629a43ce3c4dff04f0 Mon Sep 17 00:00:00 2001 From: sbh Date: Thu, 2 Apr 2015 10:49:13 +0300 Subject: [PATCH] Fix for runtime error in libSketchSolver.so --- src/SketchSolver/SketchSolver_ConstraintGroup.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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, -- 2.39.2