Commit 51dc7b71 authored by David Gobbi's avatar David Gobbi

Fix interaction bug in OpenGL2 vtkImageSlice/ResliceMapper.

The vtkImageResliceMapper class was changing the elements of a matrix
without updating the matrix timestamp, so the helper actors inside of
OpenGL2/vtkOpenGLSliceMapper.cxx were not updating their positions as
they should.
parent 0225aeea
......@@ -163,9 +163,8 @@ void vtkImageResliceMapper::Render(vtkRenderer *ren, vtkImageSlice *prop)
// delegate to vtkImageSliceMapper
this->SliceMapper->SetInputConnection(
this->ImageReslice->GetOutputPort());
vtkMatrix4x4::DeepCopy(
*this->SliceMapper->GetDataToWorldMatrix()->Element,
*this->SliceToWorldMatrix->Element);
this->SliceMapper->GetDataToWorldMatrix()->DeepCopy(
this->SliceToWorldMatrix);
// the mapper uses SliceFacesCamera to decide whether to use a polygon
// for the texture versus using a quad the size of the window
this->SliceMapper->SetSliceFacesCamera(
......
Markdown is supported
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