]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix problem that trihedron is highlighting when local context is open
authorvsr <vsr@opencascade.com>
Wed, 26 Aug 2015 12:37:46 +0000 (15:37 +0300)
committervsr <vsr@opencascade.com>
Wed, 26 Aug 2015 12:37:46 +0000 (15:37 +0300)
src/OCCViewer/OCCViewer_ViewModel.cxx
src/SOCC/SOCC_ViewModel.cxx

index 203d93bde1694db937e882955dc87c3330076176..1b2f96cbed45bdae5f0f0f4747e574d926857581 100755 (executable)
@@ -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 );
   }
index bebe7068cbe64ed13543235c3c0a3afdd75fa726..32ad890c90c3416c2a3612a9898364cffb000d0c 100755 (executable)
@@ -564,7 +564,7 @@ void SOCC_Viewer::LocalSelection( const SALOME_OCCPrs* thePrs, const std::list<i
   bool allObjects = thePrs == 0 || thePrs->IsNull();
   if ( !ic->HasOpenedContext() ) {
     ic->ClearCurrents( false );
-    ic->OpenLocalContext( allObjects, true, true );
+    ic->OpenLocalContext( Standard_False, Standard_True, Standard_True );
   }
 
   AIS_ListOfInteractive anObjs;