vtkMapper.ColorByArrayComponent ignored if changed from VTK_GET_ARRAY_BY_ID to VTK_GET_ARRAY_BY_NAME
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
There's a bug in VTK 4.2-4.5, in vtkMapper.ColorByArrayComponent(const char* arrayName, int component) - line 377 in CVS. The method returns prematurely, and is thus ignored, if changed from VTK_GET_ARRAY_BY_ID to VTK_GET_ARRAY_BY_NAME, and arrayName is the same as previously.
The test in this method for an early return includes "this->ArrayAccessMode == VTK_GET_ARRAY_BY_ID". It should be "this->ArrayAccessMode == VTK_GET_ARRAY_BY_NAME".