Commit 1973a7e2 authored by Michael Migliore's avatar Michael Migliore

Fix crash when cell scalars is empty

parent f5c63c90
Pipeline #135040 failed with stage
......@@ -2809,7 +2809,8 @@ void vtkOpenGLPolyDataMapper::BuildBufferObjects(vtkRenderer *ren, vtkActor *act
this->ScalarMode == VTK_SCALAR_MODE_USE_FIELD_DATA ||
!poly->GetPointData()->GetScalars() )
&& this->ScalarMode != VTK_SCALAR_MODE_USE_POINT_FIELD_DATA
&& this->Colors)
&& this->Colors
&& this->Colors->GetNumberOfTuples() > 0)
{
this->HaveCellScalars = true;
c = nullptr;
......
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