From ababf13e46dc41deaecc1f92616c8967218ffa10 Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 1 Oct 2019 12:18:56 +0300 Subject: [PATCH] Optimization of viewer updates --- src/ModuleBase/ModuleBase_WidgetSelectionFilter.cpp | 4 ++-- src/XGUI/XGUI_ViewerProxy.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ModuleBase/ModuleBase_WidgetSelectionFilter.cpp b/src/ModuleBase/ModuleBase_WidgetSelectionFilter.cpp index ed75e8671..4b6871641 100644 --- a/src/ModuleBase/ModuleBase_WidgetSelectionFilter.cpp +++ b/src/ModuleBase/ModuleBase_WidgetSelectionFilter.cpp @@ -325,7 +325,7 @@ ModuleBase_WidgetSelectionFilter::~ModuleBase_WidgetSelectionFilter() myListIO.Clear(); myShowBtn->setChecked(false); } - aCtx->UpdateCurrentViewer(); + myWorkshop->viewer()->update(); } SelectorFeature = FeaturePtr(); AttributeId = ""; @@ -535,7 +535,7 @@ void ModuleBase_WidgetSelectionFilter::onShowOnly(bool theShow) } } } - aCtx->UpdateCurrentViewer(); + myWorkshop->viewer()->update(); } void ModuleBase_WidgetSelectionFilter::updateSelectBtn() diff --git a/src/XGUI/XGUI_ViewerProxy.cpp b/src/XGUI/XGUI_ViewerProxy.cpp index 4cc8abee1..fbff53c41 100644 --- a/src/XGUI/XGUI_ViewerProxy.cpp +++ b/src/XGUI/XGUI_ViewerProxy.cpp @@ -527,14 +527,14 @@ void XGUI_ViewerProxy::updateHighlight() else { myResult = ResultPtr(); } - aContext->UpdateCurrentViewer(); + update(); } isDisplayed = aRes.get(); } } if (!isDisplayed) { if (eraseHighlight()) { - aContext->UpdateCurrentViewer(); + update(); } myResult = ResultPtr(); } -- 2.39.2