Skip to content

Commit

Permalink
[ttkCinemaImaging] remove deprecated call to vtkValuePass::SetRenderi…
Browse files Browse the repository at this point in the history
…ngMode in VTK 9
  • Loading branch information
lhofmann committed Sep 18, 2020
1 parent 23fbb4d commit 1479b7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/vtk/ttkCinemaImaging/ttkCinemaImaging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ void addValuePass(vtkDataSet *object,
size_t nComponents = field->GetNumberOfComponents();
for(size_t c = 0; c < nComponents; c++) {
auto valuePass = vtkSmartPointer<vtkValuePass>::New();
#if VTK_MAJOR_VERSION < 8 || (VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION < 90)
valuePass->SetRenderingMode(vtkValuePass::FLOATING_POINT);
#endif
valuePass->SetInputArrayToProcess(fieldType == 0
? VTK_SCALAR_MODE_USE_POINT_FIELD_DATA
: VTK_SCALAR_MODE_USE_CELL_FIELD_DATA,
Expand Down

0 comments on commit 1479b7a

Please sign in to comment.