From: vsv Date: Wed, 4 Sep 2019 10:41:47 +0000 (+0300) Subject: Issue #2532: Redisplay transparent faces for compsolids X-Git-Tag: VEDF2019Lot4~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e4a51e37d2e2a3d09a3a48654661c5b16028bb1a;p=modules%2Fshaper.git Issue #2532: Redisplay transparent faces for compsolids --- 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(); } //********************************************************************