From 2159b803fc0691b2f90f48175914963eba26be8d Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 29 Dec 2015 15:30:09 +0300 Subject: [PATCH] Concealed state should be checked on feature created signal accepting. Scenario: 1. Create Extrusion, ExtrusionSketch, Boolean between them, ExtrusionCut, Partition. 2. Save study 3. Open saved study. The ExtrusionCut result is visualized. Call Hide for Partition, ExtrusionCut is in the viewer however there is no such a result in Bodies. --- src/XGUI/XGUI_WorkshopListener.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/XGUI/XGUI_WorkshopListener.cpp b/src/XGUI/XGUI_WorkshopListener.cpp index 5f4e082fc..d44633033 100755 --- a/src/XGUI/XGUI_WorkshopListener.cpp +++ b/src/XGUI/XGUI_WorkshopListener.cpp @@ -402,6 +402,11 @@ void XGUI_WorkshopListener::onFeatureCreatedMsg(const std::shared_ptrdata()->isValid() || anObject->isDisabled() || !anObject->isDisplayed(); + if (!aHide) { // check that this is not hidden result + ResultPtr aRes = std::dynamic_pointer_cast(anObject); + bool isConcealed = aRes && aRes->isConcealed(); + aHide = aRes && aRes->isConcealed(); + } if (!aHide) { // setDisplayed has to be called in order to synchronize internal state of the object // with list of displayed objects -- 2.39.2