Skip to content

Commit

Permalink
Fix ParaView plugin crash (#1138)
Browse files Browse the repository at this point in the history
* Fix path to vtk module

* Use common vtk<->meshio type mappings
  • Loading branch information
stefsmeets committed Jun 29, 2021
1 parent 6dd053a commit 5b681fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/paraview-meshio-plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
import meshio

paraview_plugin_version = meshio.__version__
vtk_to_meshio_type = meshio.vtk._vtk.vtk_to_meshio_type
meshio_to_vtk_type = meshio.vtk._vtk.meshio_to_vtk_type
vtk_to_meshio_type = meshio._vtk_common.vtk_to_meshio_type
meshio_to_vtk_type = meshio._vtk_common.meshio_to_vtk_type
meshio_input_filetypes = list(meshio._helpers.reader_map.keys())
meshio_extensions = [ext[1:] for ext in meshio.extension_to_filetype.keys()]
meshio_input_filetypes = ["automatic"] + meshio_input_filetypes
Expand Down

0 comments on commit 5b681fd

Please sign in to comment.