Skip to content

Commit

Permalink
Fix get scalar array bug (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
banesullivan authored and philippjfr committed Apr 8, 2019
1 parent 4ab0749 commit ed6bfca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panel/pane/vtk.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def _vtksjs_from_render_window(self, render_window):
if dsAttrs:
if colorArrayName >= 0:
dataArray = dsAttrs.GetArray(colorArrayName)
elif dsAttrs.GetNumberOfArrays() == 1:
elif dsAttrs.GetNumberOfArrays() >= 1:
dataArray = dsAttrs.GetArray(0)

if dataArray:
Expand Down

0 comments on commit ed6bfca

Please sign in to comment.