From e4a51e37d2e2a3d09a3a48654661c5b16028bb1a Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 4 Sep 2019 13:41:47 +0300 Subject: [PATCH] Issue #2532: Redisplay transparent faces for compsolids --- src/XGUI/XGUI_FacesPanel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/XGUI/XGUI_FacesPanel.cpp b/src/XGUI/XGUI_FacesPanel.cpp index 50d56ab37..bc35ff267 100644 --- a/src/XGUI/XGUI_FacesPanel.cpp +++ b/src/XGUI/XGUI_FacesPanel.cpp @@ -255,18 +255,18 @@ void XGUI_FacesPanel::processSelection() continue; Handle(ModuleBase_ResultPrs) aResultPrs = anObjectToPrs.at(anObject); - if (aResultPrs->hasSubShapeVisible(anIt->second) || useTransparency()) // redisplay - ModelAPI_EventCreator::get()->sendUpdated(anObject, aDispEvent); - else { // erase object because it is entirely hidden + if (!aResultPrs->hasSubShapeVisible(anIt->second)) { // redisplay + // erase object because it is entirely hidden anObject->setDisplayed(false); myHiddenObjects.insert(anObject); - ModelAPI_EventCreator::get()->sendUpdated(anObject, aDispEvent); } + ModelAPI_EventCreator::get()->sendUpdated(anObject, aDispEvent); } if (isModified) { updateProcessedObjects(myItems, myItemObjects); flushRedisplay(); } + onTransparencyChanged(); } //******************************************************************** -- 2.39.2