An update will be applied December 9th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

Commit 134134a7 authored by David Thompson's avatar David Thompson
Browse files

Don't color by texture in `IndexedLookup` mode.

Using a texture map to color geometry assumes
that interpolation can be performed (although
this can be disabled with `GL_NEAREST`)  and
that scalar values are numeric. This need not
be true in indexed lookup mode as annotations
may be string- or variant-valued.

Change-Id: I4c0d29c57db48e9754ee2ac7d67defadc3a3a9de
parent d10fdf7d
......@@ -408,6 +408,16 @@ int vtkScalarsToColorsPainter::CanUseTextureMapForColoring(vtkDataObject* input)
if (
(this->ScalarsLookupTable &&
this->ScalarsLookupTable->GetIndexedLookup()) ||
(!this->ScalarsLookupTable &&
this->LookupTable &&
return 0;
return 1;
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