Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dce44a
)
Fix for the #19720 : Wrong part position after reloading hdf. If the part is hidden...
V9_5_0rc2
author
mpv
<mikhail.ponikarov@opencascade.com>
Wed, 24 Jun 2020 08:50:54 +0000
(11:50 +0300)
committer
vsr
<vsr@opencascade.com>
Wed, 24 Jun 2020 18:22:32 +0000
(21:22 +0300)
src/Model/Model_Update.cpp
patch
|
blob
|
history
diff --git
a/src/Model/Model_Update.cpp
b/src/Model/Model_Update.cpp
index bd9c7bfdad39d8b92a2e3ee80ea925be6c1dae71..4deb924bf578992afe002dd7b8853f0a90a3aa45 100644
(file)
--- a/
src/Model/Model_Update.cpp
+++ b/
src/Model/Model_Update.cpp
@@
-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
+ }
}
}
}