Skip to content
Snippets Groups Projects
Commit be3efed4 authored by Mark OLESEN's avatar Mark OLESEN Committed by Andrew Heather
Browse files

BUG: scalarBar range ignored in runTimePostProcessing

- was missing range setting for the colour lookup table
parent 4f93bc3b
No related merge requests found
...@@ -515,6 +515,7 @@ setField ...@@ -515,6 +515,7 @@ setField
auto lut = vtkSmartPointer<vtkLookupTable>::New(); auto lut = vtkSmartPointer<vtkLookupTable>::New();
setColourMap(lut); setColourMap(lut);
lut->SetVectorMode(vtkScalarsToColors::MAGNITUDE); lut->SetVectorMode(vtkScalarsToColors::MAGNITUDE);
lut->SetTableRange(range_.first(), range_.second());
// Configure the mapper // Configure the mapper
const char* fieldName = colourFieldName.c_str(); const char* fieldName = colourFieldName.c_str();
......
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