From 1c01627cddacfc03f4f2e878269607b02d141268 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 26 Aug 2015 15:37:46 +0300 Subject: [PATCH] Fix problem that trihedron is highlighting when local context is open --- src/OCCViewer/OCCViewer_ViewModel.cxx | 4 ++-- src/SOCC/SOCC_ViewModel.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OCCViewer/OCCViewer_ViewModel.cxx b/src/OCCViewer/OCCViewer_ViewModel.cxx index 203d93bde..1b2f96cbe 100755 --- a/src/OCCViewer/OCCViewer_ViewModel.cxx +++ b/src/OCCViewer/OCCViewer_ViewModel.cxx @@ -1240,9 +1240,9 @@ void OCCViewer_Viewer::setTrihedronShown( const bool on ) if ( on ) { myAISContext->Display( myTrihedron, 0 /*wireframe*/, - 0 /* selection mode */, + -1 /* selection mode */, Standard_True /* update viewer*/, - Standard_True /* allow decomposition */, + Standard_False /* allow decomposition */, AIS_DS_Displayed /* display status */); myAISContext->Deactivate( myTrihedron ); } diff --git a/src/SOCC/SOCC_ViewModel.cxx b/src/SOCC/SOCC_ViewModel.cxx index bebe7068c..32ad890c9 100755 --- a/src/SOCC/SOCC_ViewModel.cxx +++ b/src/SOCC/SOCC_ViewModel.cxx @@ -564,7 +564,7 @@ void SOCC_Viewer::LocalSelection( const SALOME_OCCPrs* thePrs, const std::listIsNull(); if ( !ic->HasOpenedContext() ) { ic->ClearCurrents( false ); - ic->OpenLocalContext( allObjects, true, true ); + ic->OpenLocalContext( Standard_False, Standard_True, Standard_True ); } AIS_ListOfInteractive anObjs; -- 2.39.2