]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2532: Redisplay transparent faces for compsolids
authorvsv <vsv@opencascade.com>
Wed, 4 Sep 2019 10:41:47 +0000 (13:41 +0300)
committervsv <vsv@opencascade.com>
Wed, 4 Sep 2019 10:41:47 +0000 (13:41 +0300)
src/XGUI/XGUI_FacesPanel.cpp

index 50d56ab37fef35f1b665ddad23fa268c105c178c..bc35ff26760f9c87b95e4186e4e0edc94c1cc3e1 100644 (file)
@@ -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();
 }
 
 //********************************************************************