From 9e2d8a6d15cb36ff06634977e54f1fddb5a45f9a Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 22 Feb 2022 16:04:36 +0300 Subject: [PATCH] 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). --- src/VTKViewer/VTKViewer_GeometryFilter.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.2