]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix jumping a feature to the Origin while moving
authorazv <azv@opencascade.com>
Wed, 17 May 2017 08:30:08 +0000 (11:30 +0300)
committerazv <azv@opencascade.com>
Wed, 17 May 2017 08:30:08 +0000 (11:30 +0300)
src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.cpp

index 1cefde0322bd7baa364db68ef39ccf3d1285f67b..6df3ccac61a47fdc00efbb1363a8ebc7579d51e4 100644 (file)
@@ -441,6 +441,9 @@ void PlaneGCSSolver_Storage::refresh() const
 
   std::map<AttributePtr, EntityWrapperPtr>::const_iterator anIt = myAttributeMap.begin();
   for (; anIt != myAttributeMap.end(); ++anIt) {
+    if (!anIt->first->isInitialized())
+      continue;
+
     // the external feature always should keep the up to date values, so,
     // refresh from the solver is never needed
     if (isExternalAttribute(anIt->first))