]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix of movement in history of composite bodies sub-elements when only part is selecte...
authormpv <mpv@opencascade.com>
Wed, 18 Sep 2019 07:07:37 +0000 (10:07 +0300)
committermpv <mpv@opencascade.com>
Wed, 18 Sep 2019 07:07:37 +0000 (10:07 +0300)
src/Model/Model_AttributeSelection.cpp

index 496f1e2afffb3f1dd3953076fbe0c2c7c0f74dff..50f548009481abb88f1771db683831c0bd15ab4a 100644 (file)
@@ -1296,6 +1296,8 @@ void Model_AttributeSelection::concealedFeature(
     std::list<ResultPtr> allRes;
     allRes.push_back(*aRootIter);
     ResultBodyPtr aRootBody = ModelAPI_Tools::bodyOwner(*aRootIter, true);
+    if (!aRootBody.get())
+      aRootBody = std::dynamic_pointer_cast<ModelAPI_ResultBody>(*aRootIter);
     if (aRootBody.get()) {
       ModelAPI_Tools::allSubs(aRootBody, allRes);
     }