Skip to content
Snippets Groups Projects
Commit 9e508fa0 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

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

pass one at a time
parent 72083d54
No related branches found
No related tags found
No related merge requests found
...@@ -138,7 +138,10 @@ class GiftiMesh(fslmesh.Mesh): ...@@ -138,7 +138,10 @@ class GiftiMesh(fslmesh.Mesh):
surfimg, _, vertices, _ = loadGiftiMesh(infile) 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) self.setMeta(infile, surfimg)
......
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