Skip to content

Commit b02dc93

Browse files
authored
FIX: Fix set surf (#232)
1 parent 6d8685c commit b02dc93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

surfer/viz.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1858,6 +1858,7 @@ def set_surf(self, surf):
18581858

18591859
# update mesh objects (they use a reference to geo.coords)
18601860
for brain in self.brains:
1861+
brain._geo_mesh.data.points = self.geo[brain.hemi].coords
18611862
brain.update_surf()
18621863

18631864
self.surf = surf
@@ -3369,7 +3370,7 @@ def _orient_lights(self):
33693370
light.azimuth *= -1
33703371

33713372
def update_surf(self):
3372-
"Update surface mesh after mesh coordinates change"
3373+
"""Update surface mesh after mesh coordinates change."""
33733374
with warnings.catch_warnings(record=True): # traits
33743375
self._geo_mesh.update()
33753376
for mesh in self._mesh_clones.values():

0 commit comments

Comments
 (0)