From: vsr Date: Mon, 19 Apr 2021 09:36:45 +0000 (+0300) Subject: bos #23995 Allow propagation to VTK via SALOME_ACTOR_DELEGATE_TO_VTK env variable X-Git-Tag: V9_7_0a1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f4f9e27e09558f58d6183d62ced2469c8c451d58;p=modules%2Fgui.git bos #23995 Allow propagation to VTK via SALOME_ACTOR_DELEGATE_TO_VTK env variable --- diff --git a/src/VTKViewer/VTKViewer_GeometryFilter.cxx b/src/VTKViewer/VTKViewer_GeometryFilter.cxx index c85c84c22..ab252568d 100644 --- a/src/VTKViewer/VTKViewer_GeometryFilter.cxx +++ b/src/VTKViewer/VTKViewer_GeometryFilter.cxx @@ -92,6 +92,8 @@ #endif /////////////////////////////////////////////////////////////////////////////////////////////// +#include "Qtx.h" + vtkStandardNewMacro(VTKViewer_GeometryFilter) VTKViewer_GeometryFilter @@ -102,7 +104,15 @@ VTKViewer_GeometryFilter myAppendCoincident3D(0), myMaxArcAngle(2), myIsBuildArc(false) -{} +{ + static int forceDelegateToVtk = -1; + if ( forceDelegateToVtk < 0 ) + { + QString env = Qtx::getenv( "SALOME_ACTOR_DELEGATE_TO_VTK" ); + forceDelegateToVtk = (int)(env == "1"); + } + delegateToVtk = forceDelegateToVtk > 0; +} VTKViewer_GeometryFilter