Commit 37c559c0 authored by Ken Martin's avatar Ken Martin
Browse files

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.
parent acb373ab
...@@ -133,6 +133,7 @@ void vtkPVLODActor::Render(vtkRenderer* ren, vtkMapper* vtkNotUsed(m)) ...@@ -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. // We might want to estimate time from the number of polygons in mapper.
vtkInformation* info = this->GetPropertyKeys(); vtkInformation* info = this->GetPropertyKeys();
this->Device->SetPropertyKeys(info); this->Device->SetPropertyKeys(info);
this->Device->SetMapper(mapper);
this->Device->Render(ren, mapper); this->Device->Render(ren, mapper);
if (this->Texture) if (this->Texture)
{ {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment