From: mpv Date: Fri, 20 Nov 2015 06:35:05 +0000 (+0300) Subject: Fix for the issue #1100 X-Git-Tag: V_2.1.0~250 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8a57ef42e3538be4b96f796b8ee057c3f39e3053;p=modules%2Fshaper.git Fix for the issue #1100 --- diff --git a/src/Model/Model_Data.cpp b/src/Model/Model_Data.cpp index 75b38aeb0..68656b9d5 100644 --- a/src/Model/Model_Data.cpp +++ b/src/Model/Model_Data.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -430,7 +431,10 @@ void Model_Data::updateConcealmentFlag() std::shared_ptr aRes = std::dynamic_pointer_cast(myObject); if (aRes.get()) { - aRes->setIsConcealed(false); + // if compsolid result has subs, do nothing directly: it depends on the sub's status (#1100) + ResultCompSolidPtr aComp = std::dynamic_pointer_cast(myObject); + if (!aComp || aComp->numberOfSubs() == 0 || aComp->ModelAPI_ResultCompSolid::isConcealed()) + aRes->setIsConcealed(false); } }