From: rnv Date: Tue, 22 Feb 2022 13:04:36 +0000 (+0300) Subject: Introduce new environment variable SALOME_ACTOR_DO_NOT_DELEGATE_TO_VTK instead of... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fcbr%2Fenable_elements_selection_in_delegate_to_vtk;p=modules%2Fgui.git Introduce new environment variable SALOME_ACTOR_DO_NOT_DELEGATE_TO_VTK instead of SALOME_ACTOR_DELEGATE_TO_VTK. This new variable allows to switch on old functionality (for debug purposes for example). --- diff --git a/src/VTKViewer/VTKViewer_GeometryFilter.cxx b/src/VTKViewer/VTKViewer_GeometryFilter.cxx index 071001c12..e05ec36f2 100644 --- a/src/VTKViewer/VTKViewer_GeometryFilter.cxx +++ b/src/VTKViewer/VTKViewer_GeometryFilter.cxx @@ -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; }