From fab014daec7a2d69e158917df73157d744af28e8 Mon Sep 17 00:00:00 2001 From: rnv Date: Wed, 6 Mar 2019 12:18:53 +0300 Subject: [PATCH] [EDF] GEOM : all objects of the Object Browser list hidden when hide one --- src/OCCViewer/OCCViewer_ViewModel.cxx | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.39.2