]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the #19720 : Wrong part position after reloading hdf. If the part is hidden...
authormpv <mikhail.ponikarov@opencascade.com>
Wed, 24 Jun 2020 08:50:54 +0000 (11:50 +0300)
committermpv <mikhail.ponikarov@opencascade.com>
Wed, 24 Jun 2020 08:50:54 +0000 (11:50 +0300)
src/Model/Model_Update.cpp

index bd9c7bfdad39d8b92a2e3ee80ea925be6c1dae71..4deb924bf578992afe002dd7b8853f0a90a3aa45 100644 (file)
@@ -308,6 +308,10 @@ void Model_Update::processEvent(const std::shared_ptr<Events_Message>& theMessag
           aFeatures.push_back(*anObjIter);
         } else {
           aResults.push_back(*anObjIter);
+          ResultPartPtr aPart = std::dynamic_pointer_cast<ModelAPI_ResultPart>(*anObjIter);
+          if (aPart.get() && aPart->data().get() && aPart->data()->isValid()) {
+            aPart->shape(); // to update the shape on creation of the result
+          }
         }
       }
     }