Raytracing backend selection not working due to wrong names
The raytracing backend selection in PV does not work since the GUI entry renaming, as the RT wrapper in VTK depends on the correct strings. The following diff fixes it, but not sure if that's the best solution?
@@ -3101,7 +3103,14 @@ void vtkPVRenderView::SetOSPRayRendererType(std::string name)
{
#if VTK_MODULE_ENABLE_VTK_RenderingRayTracing
vtkRenderer* ren = this->GetRenderer();
- vtkOSPRayRendererNode::SetRendererType(name, ren);
+
+ std::string fixedName = "scivis";
+ if (name == "OSPRay pathtracer")
+ fixedName = "pathtracer";
+ else if (name == "OptiX pathtracer")
+ fixedName = "optix pathtracer";
+
+ vtkOSPRayRendererNode::SetRendererType(fixedName, ren);
#else
(void)name;
#endif