]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Update viewer on active part change in case of displayed construction objects
authorvsv <vsv@opencascade.com>
Thu, 30 Jan 2020 13:51:34 +0000 (16:51 +0300)
committervsv <vsv@opencascade.com>
Thu, 30 Jan 2020 13:51:34 +0000 (16:51 +0300)
src/PartSet/PartSet_Module.cpp

index 75fa7c49c2a7f1900c932942fa1505bb8566ef49..1c8fbfc230c0fd1a3e653447ba0754549d64c8ad 100644 (file)
@@ -1564,17 +1564,14 @@ void PartSet_Module::processEvent(const std::shared_ptr<Events_Message>& theMess
     XGUI_Displayer* aDisplayer = aWorkshop->displayer();
     QObjectPtrList aObjects = aDisplayer->displayedObjects();
     bool aHidden;
-    bool aUpdateViewer = false;
     foreach(ObjectPtr aObj, aObjects) {
       aHidden = !aObj->data() || !aObj->data()->isValid() ||
         aObj->isDisabled() || (!aObj->isDisplayed());
       if (!aHidden) {
         aDisplayer->redisplay(aObj, false);
-        aUpdateViewer = true;
       }
     }
-    if (aUpdateViewer)
-     aDisplayer->updateViewer();
+    aDisplayer->updateViewer();
     // Update tree items if they are expanded
     if (needUpdate) {
       aTreeView->viewport()->update(aTreeView->viewport()->rect());