]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for runtime error in libSketchSolver.so
authorsbh <sergey.belash@opencascade.com>
Thu, 2 Apr 2015 07:49:13 +0000 (10:49 +0300)
committersbh <sergey.belash@opencascade.com>
Thu, 2 Apr 2015 07:49:13 +0000 (10:49 +0300)
src/SketchSolver/SketchSolver_ConstraintGroup.cpp

index b5a33d8d2d50d13a4c7d272ad4761a6fcb823552..2dc2db4ac2256ef63e172471aa4f7a38a61bee3b 100644 (file)
@@ -507,10 +507,7 @@ bool SketchSolver_ConstraintGroup::changeRigidConstraint(
         std::dynamic_pointer_cast<GeomDataAPI_Point>(aConstrAttr->attr());
     std::shared_ptr<GeomDataAPI_Point2D> aPoint2D =
         std::dynamic_pointer_cast<GeomDataAPI_Point2D>(aConstrAttr->attr());
-//    std::shared_ptr<SketchPlugin_Point> aSketchPoint =
-//        std::dynamic_pointer_cast<SketchPlugin_Point>(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,