]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #393: Fix the problem with Distance between two separate fixed points
authorazv <azv@opencascade.com>
Fri, 27 Mar 2015 08:06:17 +0000 (11:06 +0300)
committerazv <azv@opencascade.com>
Fri, 27 Mar 2015 08:06:58 +0000 (11:06 +0300)
src/SketchSolver/SketchSolver_ConstraintGroup.cpp

index d7f2409d1d05bebc8737beddcd53243020abc71a..9b0ae4325756fb0ae42fef3ff50a45b56a89aeb7 100644 (file)
@@ -507,7 +507,9 @@ 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());
-    if (aPoint || aPoint2D) {
+    std::shared_ptr<SketchPlugin_Point> aSketchPoint = 
+        std::dynamic_pointer_cast<SketchPlugin_Point>(aFeature);
+    if (aPoint || aPoint2D || aSketchPoint) {
       // Create SolveSpace constraint structure
       Slvs_Constraint aConstraint = Slvs_MakeConstraint(
           ++myConstrMaxID, myID, aConstrType, myWorkplane.h, 0.0,