From: mpv Date: Wed, 18 Sep 2019 07:07:37 +0000 (+0300) Subject: Fix of movement in history of composite bodies sub-elements when only part is selecte... X-Git-Tag: V9_4_0a2~4^2~84 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9d028a39c403bc9ddcccc80a6c1e46d44dda428b;p=modules%2Fshaper.git Fix of movement in history of composite bodies sub-elements when only part is selected by concealer. --- diff --git a/src/Model/Model_AttributeSelection.cpp b/src/Model/Model_AttributeSelection.cpp index 496f1e2af..50f548009 100644 --- a/src/Model/Model_AttributeSelection.cpp +++ b/src/Model/Model_AttributeSelection.cpp @@ -1296,6 +1296,8 @@ void Model_AttributeSelection::concealedFeature( std::list allRes; allRes.push_back(*aRootIter); ResultBodyPtr aRootBody = ModelAPI_Tools::bodyOwner(*aRootIter, true); + if (!aRootBody.get()) + aRootBody = std::dynamic_pointer_cast(*aRootIter); if (aRootBody.get()) { ModelAPI_Tools::allSubs(aRootBody, allRes); }