From 4a805fbd6f6d13de8c047ee4976616b77ff1807f Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 25 Aug 2015 18:39:44 +0300 Subject: [PATCH] Fix problem with displaying/erasing trihedron in opened local context (local selection enabled) --- src/OCCViewer/OCCViewer_ViewModel.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/OCCViewer/OCCViewer_ViewModel.cxx b/src/OCCViewer/OCCViewer_ViewModel.cxx index d7eae71b8..621a7d83a 100755 --- a/src/OCCViewer/OCCViewer_ViewModel.cxx +++ b/src/OCCViewer/OCCViewer_ViewModel.cxx @@ -956,8 +956,13 @@ void OCCViewer_Viewer::setTrihedronShown( const bool on ) return; if ( on ) { - myAISContext->Display( myTrihedron ); - myAISContext->Deactivate(myTrihedron); + myAISContext->Display( myTrihedron, + 0 /*wireframe*/, + 0 /* selection mode */, + Standard_True /* update viewer*/, + Standard_True /* allow decomposition */, + AIS_DS_Displayed /* display status */); + myAISContext->Deactivate( myTrihedron ); } else { myAISContext->Erase( myTrihedron ); -- 2.39.2