]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Sketch with the Fixed constraints only should be processed as usual sketch
authorazv <azv@opencascade.com>
Wed, 29 Mar 2017 14:08:34 +0000 (17:08 +0300)
committerazv <azv@opencascade.com>
Wed, 29 Mar 2017 14:13:22 +0000 (17:13 +0300)
src/SketchSolver/SketchSolver_Group.cpp

index c02c9a6d03e3722fdc2a61ddbcfb210c2ac9c561..329f6f84cd2e899fad3a4a0592c7d11ab7d2d5a0 100644 (file)
@@ -210,17 +210,6 @@ bool SketchSolver_Group::resolveConstraints()
     }
 
     aResolved = true;
-  } else if (!isGroupEmpty) {
-    // Check if the group contains only constraints Fixed, update parameters by stored values
-    aResolved = true;
-    ConstraintConstraintMap::iterator aCIt = myConstraints.begin();
-    for (; aCIt != myConstraints.end(); ++aCIt)
-      if (aCIt->first->getKind() != SketchPlugin_ConstraintRigid::ID()) {
-        aResolved = false;
-        break;
-      }
-    if (aCIt == myConstraints.end())
-      myStorage->refresh();
   } else if (isGroupEmpty && isWorkplaneValid())
     computeDoF();
   removeTemporaryConstraints();