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^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fb2ecc88fb2accb44f290990e1fbfe7654e89117;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 + } } } }