From 14e4164a09f4db2b0111ad44c55bb0590b309393 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Fri, 19 Jul 2019 12:37:24 -0400 Subject: [PATCH] Make sure the mapper is set in PVLODActor The PVLODActor uses a Device internally that is an actor, but it never sets the mapper on this Device which causes incorrect results to be returned from calls such as GetBounds on that Device. (cherry picked from commit 37c559c0234bfcb8ef7d1fb9bf0c7eb951dc147e) --- ParaViewCore/VTKExtensions/Rendering/vtkPVLODActor.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/ParaViewCore/VTKExtensions/Rendering/vtkPVLODActor.cxx b/ParaViewCore/VTKExtensions/Rendering/vtkPVLODActor.cxx index 440813b690..a742feef19 100644 --- a/ParaViewCore/VTKExtensions/Rendering/vtkPVLODActor.cxx +++ b/ParaViewCore/VTKExtensions/Rendering/vtkPVLODActor.cxx @@ -133,6 +133,7 @@ void vtkPVLODActor::Render(vtkRenderer* ren, vtkMapper* vtkNotUsed(m)) // We might want to estimate time from the number of polygons in mapper. vtkInformation* info = this->GetPropertyKeys(); this->Device->SetPropertyKeys(info); + this->Device->SetMapper(mapper); this->Device->Render(ren, mapper); if (this->Texture) { -- GitLab