Skip to content
Snippets Groups Projects
Commit 65d6551f authored by Mark OLESEN's avatar Mark OLESEN
Browse files

BUG: scalarBar range ignored in runTimePostProcessing

- was missing range setting for the colour lookup table
parent a6b38dc3
No related branches found
No related tags found
No related merge requests found
...@@ -270,6 +270,7 @@ setField ...@@ -270,6 +270,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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment