From 9d028a39c403bc9ddcccc80a6c1e46d44dda428b Mon Sep 17 00:00:00 2001 From: mpv Date: Wed, 18 Sep 2019 10:07:37 +0300 Subject: [PATCH] Fix of movement in history of composite bodies sub-elements when only part is selected by concealer. --- src/Model/Model_AttributeSelection.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.39.2