From: mpv Date: Wed, 24 Jun 2020 08:50:54 +0000 (+0300) Subject: Fix for the #19720 : Wrong part position after reloading hdf. If the part is hidden... X-Git-Tag: V9_5_0rc2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4eb33b58c57101e98a35173981ab11a806ffa6a0;p=modules%2Fshaper.git Fix for the #19720 : Wrong part position after reloading hdf. If the part is hidden, in the display event processing do not called "shape" of the part, so, the shape is not initialized and "Update" event for the feature is not called. --- diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index bd9c7bfda..4deb924bf 100644 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -308,6 +308,10 @@ void Model_Update::processEvent(const std::shared_ptr& theMessag aFeatures.push_back(*anObjIter); } else { aResults.push_back(*anObjIter); + ResultPartPtr aPart = std::dynamic_pointer_cast(*anObjIter); + if (aPart.get() && aPart->data().get() && aPart->data()->isValid()) { + aPart->shape(); // to update the shape on creation of the result + } } } }