]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Introduce new environment variable SALOME_ACTOR_DO_NOT_DELEGATE_TO_VTK instead of... cbr/enable_elements_selection_in_delegate_to_vtk
authorrnv <rnv@opencascade.com>
Tue, 22 Feb 2022 13:04:36 +0000 (16:04 +0300)
committerrnv <rnv@opencascade.com>
Tue, 22 Feb 2022 13:04:36 +0000 (16:04 +0300)
src/VTKViewer/VTKViewer_GeometryFilter.cxx

index 071001c129d8b2c775002e85a1dd2de8b0a50e5a..e05ec36f281b97b6094bfb9fd570fc5c5facc8e8 100644 (file)
@@ -108,8 +108,8 @@ VTKViewer_GeometryFilter
   static int forceDelegateToVtk = -1;
   if ( forceDelegateToVtk < 0 )
   {
-    QString env = Qtx::getenv( "SALOME_ACTOR_DELEGATE_TO_VTK" );
-    forceDelegateToVtk = (int)(env == "1");
+    QString env = Qtx::getenv( "SALOME_ACTOR_DO_NOT_DELEGATE_TO_VTK" );
+    forceDelegateToVtk = (int)(env != "1");
   }
   delegateToVtk = forceDelegateToVtk > 0;
 }