]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fixed the problem of update of the presentation on abort/undo.
authormpv <mpv@opencascade.com>
Thu, 9 Nov 2017 14:51:12 +0000 (17:51 +0300)
committermpv <mpv@opencascade.com>
Thu, 9 Nov 2017 14:51:12 +0000 (17:51 +0300)
src/Model/Model_ResultCompSolid.cpp

index c650196d92863db878ad59395ba7b238f860ab73..2446e4048e2582c495b42e8d7165bd3d9b26131b 100755 (executable)
@@ -240,8 +240,7 @@ void Model_ResultCompSolid::updateSubs(const std::shared_ptr<GeomAPI_Shape>& the
   } else if (!mySubs.empty()) { // erase all subs
     while(!mySubs.empty()) {
       ResultBodyPtr anErased = *(mySubs.rbegin());
-      if (anErased->data()->isValid())
-        anErased->setDisabled(anErased, true);
+      anErased->setDisabled(anErased, true); // even if it is invalid (to erase subs on abort/undo)
       mySubs.pop_back();
     }
     mySubsMap.clear();