From 3ce113f635b35f2cffd4d273c68f7c510929964d Mon Sep 17 00:00:00 2001
From: Mathieu Westphal <mathieu.westphal@kitware.com>
Date: Tue, 16 Jul 2024 11:12:09 +0200
Subject: [PATCH] Fix plugin

---
 tools/paraview-meshio-plugin.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/paraview-meshio-plugin.py b/tools/paraview-meshio-plugin.py
index a4f2813f8..a80c5d854 100644
--- a/tools/paraview-meshio-plugin.py
+++ b/tools/paraview-meshio-plugin.py
@@ -82,7 +82,9 @@ def RequestData(self, request, inInfoVec, outInfoVec):
         cell_types = np.array([], dtype=np.ubyte)
         cell_offsets = np.array([], dtype=int)
         cell_conn = np.array([], dtype=int)
-        for meshio_type, data in cells:
+        for cellblock in cells:
+            meshio_type = cellblock.type
+            data = cellblock.data
             vtk_type = meshio_to_vtk_type[meshio_type]
             ncells, npoints = data.shape
             cell_types = np.hstack(
