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

Merge topic 'fixed-colors-webglpolydata'


 Bugfix: colors of webGL export for polydata:
Acked-by: Kitware Robot's avatarKitware Robot <>
Acked-by: Bastien Jacquet's avatarBastien Jacquet <>
Merge-request: !1585
parents 38bb97bb d7d57491
......@@ -708,7 +708,7 @@ void vtkWebGLPolyData::GetColorsFromPointData(unsigned char* color, vtkPointData
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);
Supports Markdown
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