Commit 9e508fa0 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

BF: GiftiMesh was passing a list of vertex arrays to addVertices - need to

pass one at a time
parent 72083d54
......@@ -138,7 +138,10 @@ class GiftiMesh(fslmesh.Mesh):
surfimg, _, vertices, _ = loadGiftiMesh(infile)
vertices = self.addVertices(vertices, key, *args, **kwargs)
for i, v in enumerate(vertices):
if i == 0: key = infile
else: key = '{}_{}'.format(infile, i)
vertices[i] = self.addVertices(v, key, *args, **kwargs)
self.setMeta(infile, surfimg)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment