Commit b824d947 authored by Cory Quammen's avatar Cory Quammen Committed by Kitware Robot

Merge topic 'fixed-colors-webglpolydata'

d7d57491 Bugfix: colors of webGL export for polydata:
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Bastien Jacquet's avatarBastien Jacquet <bastien.jacquet@kitware.com>
Merge-request: !1585
parents 38bb97bb d7d57491
Pipeline #18605 pending with stage
......@@ -708,7 +708,7 @@ void vtkWebGLPolyData::GetColorsFromPointData(unsigned char* color, vtkPointData
array)
{
vtkScalarsToColors* table = actor->GetMapper()->GetLookupTable();
vtkUnsignedCharArray* cor = table->MapScalars(array, table->GetVectorMode(), table->GetVectorComponent());
vtkUnsignedCharArray* cor = table->MapScalars(array, actor->GetMapper()->GetColorMode(), table->GetVectorComponent());
memcpy(color, cor->GetPointer(0), polydata->GetNumberOfPoints()*4);
cor->Delete();
}
......
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