]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
bos #23995 Allow propagation to VTK via SALOME_ACTOR_DELEGATE_TO_VTK env variable
authorvsr <vsr@opencascade.com>
Mon, 19 Apr 2021 09:36:45 +0000 (12:36 +0300)
committervsr <vsr@opencascade.com>
Mon, 19 Apr 2021 09:36:45 +0000 (12:36 +0300)
src/VTKViewer/VTKViewer_GeometryFilter.cxx

index c85c84c225a050ee86ef16a04f6bda36d85c31d0..ab252568d3968e1b2cf2360a41000f8dbee16357 100644 (file)
@@ -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