Salome HOME
Do not allow user to move fixed entities (issue #1043)
[modules/shaper.git] / src / SketchSolver / SketchSolver_Storage.cpp
index 4ed2112e4b81b999181e35b5be337f94597e7436..58cd67418755730d3f169b6bdde4c3f020c8db65 100644 (file)
@@ -371,6 +371,14 @@ bool SketchSolver_Storage::isPointFixed(
       break;
     }
 
+  // Check whether one of coincident points is out-of-group
+  std::set<Slvs_hEntity>::const_iterator aCoincIt = aCoincident.begin();
+  for (; aCoincIt != aCoincident.end(); ++aCoincIt) {
+    Slvs_Entity aPoint = getEntity(*aCoincIt);
+    if (aPoint.group == SLVS_G_OUTOFGROUP)
+      return true;
+  }
+
   // Search the Rigid constraint
   theFixed = SLVS_C_UNKNOWN;
   std::vector<Slvs_Constraint>::const_iterator aConstrIter = myConstraints.begin();