From: rnv Date: Wed, 6 Mar 2019 09:18:53 +0000 (+0300) Subject: [EDF] GEOM : all objects of the Object Browser list hidden when hide one X-Git-Tag: V9_3_0a2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f2756276c395bcdc50f794a903273aefaf5080d6;p=modules%2Fgui.git [EDF] GEOM : all objects of the Object Browser list hidden when hide one --- diff --git a/src/OCCViewer/OCCViewer_ViewModel.cxx b/src/OCCViewer/OCCViewer_ViewModel.cxx index 1b680e5ef..2c3f55631 100644 --- a/src/OCCViewer/OCCViewer_ViewModel.cxx +++ b/src/OCCViewer/OCCViewer_ViewModel.cxx @@ -1165,6 +1165,12 @@ bool OCCViewer_Viewer::unHighlightAll( bool updateviewer, bool unselect ) myAISContext->UnhilightSelected( updateviewer ); } #if OCC_VERSION_LARGE <= 0x07030000 + } else { + if ( unselect ) { + myAISContext->ClearCurrents( updateviewer ); + } else { + myAISContext->UnhilightCurrents( updateviewer ); + } } #endif return false;