Skip to content

Commit

Permalink
Merge pull request #55 from AngelFP/fix_vtk
Browse files Browse the repository at this point in the history
Fix bug with VTK
  • Loading branch information
AngelFP authored Aug 12, 2023
2 parents da0bd6b + ed85778 commit 70e4e35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visualpic/visualization/vtk_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ def _load_data_into_multi_volume(self, timestep):
# only a single volume. The fix replaces the 'vtkMultiVolume' for a
# 'vtkVolume' and then calls '_load_data_into_single_volume'.
if len(self.volume_field_list) == 1:
if not isinstance(self.vtk_volume, vtk.vtkVolume):
if isinstance(self.vtk_volume, vtk.vtkMultiVolume):
self.renderer.RemoveVolume(self.vtk_volume)
self.vtk_volume = vtk.vtkVolume()
self.renderer.AddVolume(self.vtk_volume)
Expand Down

0 comments on commit 70e4e35

Please sign in to comment.