From f4f9e27e09558f58d6183d62ced2469c8c451d58 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 19 Apr 2021 12:36:45 +0300 Subject: [PATCH] bos #23995 Allow propagation to VTK via SALOME_ACTOR_DELEGATE_TO_VTK env variable --- src/VTKViewer/VTKViewer_GeometryFilter.cxx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 -- 2.39.2