From 9952c8ed69cf4d1c8aa82ec1b4f3dc1970f5788e Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 11 Dec 2017 15:28:04 +0100 Subject: [PATCH] First try of porting to PV 81f25a55900a33f3cf46dfae349e3e4d6c0a8df4 --- src/SVTK/SVTK_Recorder.cxx | 2 +- src/VTKViewer/VTKViewer_Texture.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SVTK/SVTK_Recorder.cxx b/src/SVTK/SVTK_Recorder.cxx index c75e35d78..11cce2b5b 100755 --- a/src/SVTK/SVTK_Recorder.cxx +++ b/src/SVTK/SVTK_Recorder.cxx @@ -396,7 +396,7 @@ SVTK_Recorder return; } myFilter->UpdateInformation(); - myFilter->SetUpdateExtentToWholeExtent(); + //myFilter->SetUpdateExtentToWholeExtent(); myFilter->Update(); } diff --git a/src/VTKViewer/VTKViewer_Texture.cxx b/src/VTKViewer/VTKViewer_Texture.cxx index 7b20cd5e1..c6faba0b1 100644 --- a/src/VTKViewer/VTKViewer_Texture.cxx +++ b/src/VTKViewer/VTKViewer_Texture.cxx @@ -534,7 +534,7 @@ void VTKViewer_Texture::Load(vtkRenderer *ren) // make sure using unsigned char data of color scalars type if (this->IsDepthTexture != 1 && - (this->MapColorScalarsThroughLookupTable || + (this->ColorMode || scalars->GetDataType() != VTK_UNSIGNED_CHAR )) { dataPtr = this->MapScalarsToColors (scalars); -- 2.39.2