Skip to content

Commit

Permalink
Upgrade test suite
Browse files Browse the repository at this point in the history
- Fix: Check for not vtk_obj in get_vtk_array_data().
- Replaced run_update_all() with check_node_statuses()
  to check that all nodes are up-to-date.
- Upgraded test json and blend files.
  • Loading branch information
tkeskita committed Sep 17, 2021
1 parent 3b8cce0 commit 42e13f9
Show file tree
Hide file tree
Showing 13 changed files with 202 additions and 381 deletions.
2 changes: 2 additions & 0 deletions converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1524,6 +1524,8 @@ def get_vtk_array_data(vtk_obj, array_name, array_type='P'):
'''Get VTK data array from data set with given name and type (point or
cell data)
'''
if not vtk_obj:
return None
if array_type in ('P', 'p'):
data = vtk_obj.GetPointData()
elif array_type in ('C', 'c'):
Expand Down
Binary file modified test/blend_files/test_global_time_keeper.blend
Binary file not shown.
Binary file modified test/blend_files/test_template.blend
Binary file not shown.
Loading

0 comments on commit 42e13f9

Please sign in to comment.