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=9e2d8a6d15cb36ff06634977e54f1fddb5a45f9a;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; }