From: vsv Date: Thu, 30 Jan 2020 13:51:34 +0000 (+0300) Subject: Update viewer on active part change in case of displayed construction objects X-Git-Tag: V9_5_0a1~48 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4c6bc04d7e9741d06345a4a06ae11f3bf80f5b04;p=modules%2Fshaper.git Update viewer on active part change in case of displayed construction objects --- diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index 75fa7c49c..1c8fbfc23 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -1564,17 +1564,14 @@ void PartSet_Module::processEvent(const std::shared_ptr& 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());