]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Optimization for the naming structure loading in the issue 2636 model
authormpv <mpv@opencascade.com>
Mon, 4 Feb 2019 14:07:01 +0000 (17:07 +0300)
committermpv <mpv@opencascade.com>
Mon, 4 Feb 2019 14:07:01 +0000 (17:07 +0300)
src/Model/Model_ResultBody.cpp

index 3ba6431181ca6347757304fb94981d50d1187b51..e1d3ab200d72aaf5cb6ab549c819a0ec5d90e77e 100644 (file)
@@ -306,6 +306,8 @@ void Model_ResultBody::updateSubs(
   const GeomShapePtr& theThisShape, const std::list<GeomShapePtr>& theOlds,
   const std::shared_ptr<GeomAlgoAPI_MakeShape> theMakeShape, const bool isGenerated)
 {
+  // to avoid changing of "isDisabled" flag in the "updateSubs" cycle
+  isDisabled();
   myAlgo = theMakeShape;
   myOlds = theOlds;
   myIsGenerated = isGenerated;