From: vsv Date: Tue, 1 Oct 2019 09:18:56 +0000 (+0300) Subject: Optimization of viewer updates X-Git-Tag: V9_4_0a2~4^2~44 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ababf13e46dc41deaecc1f92616c8967218ffa10;p=modules%2Fshaper.git Optimization of viewer updates --- 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(); }