Skip to content
Snippets Groups Projects
Commit 7496bf02 authored by Andreas Kloeckner's avatar Andreas Kloeckner
Browse files

Fix unpickling of triangle.MeshInfo.

parent b41f768e
No related branches found
Tags v2021.2.6
No related merge requests found
......@@ -44,6 +44,8 @@ class MeshInfo(internals.MeshInfo, MeshInfoBase):
else:
if len(dest_array) != len(array):
dest_array.resize(len(array))
if not dest_array.allocated and len(array)>0:
dest_array.setup()
for i,tup in enumerate(array):
for j,v in enumerate(tup):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment