[vtkusers] bug in vtkImageStack

David Gobbi david.gobbi at gmail.com
Mon Jun 20 18:04:09 EDT 2011


I've pushed the fix.  Here's the patch, if you are curious.

--- a/Rendering/vtkImageStack.cxx
+++ b/Rendering/vtkImageStack.cxx
@@ -332,8 +332,8 @@ int
vtkImageStack::RenderTranslucentPolygonalGeometry(vtkViewport* viewport)
    {
    // no multi-pass if only one image
    this->Images->InitTraversal(pit);
-    image->SetAllocatedRenderTime(renderTime, viewport);
    image = this->Images->GetNextImage(pit);
+    image->SetAllocatedRenderTime(renderTime, viewport);
    return image->RenderTranslucentPolygonalGeometry(viewport);
    }

@@ -377,8 +377,8 @@ int vtkImageStack::RenderOverlay(vtkViewport* viewport)
    {
    // no multi-pass if only one image
    this->Images->InitTraversal(pit);
-    image->SetAllocatedRenderTime(renderTime, viewport);
    image = this->Images->GetNextImage(pit);
+    image->SetAllocatedRenderTime(renderTime, viewport);
    return image->RenderOverlay(viewport);
    }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110620/4dd6e6ae/attachment.htm>


More information about the vtkusers mailing list