Skip to content

Commit

Permalink
MAINT: Clean up PyVista contexts (#12533)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner authored Apr 9, 2024
1 parent 0d51488 commit 940ac95
Show file tree
Hide file tree
Showing 2 changed files with 262 additions and 303 deletions.
6 changes: 1 addition & 5 deletions mne/viz/_3d_overlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,7 @@ def remove_overlay(self, names):
def _apply(self):
if self._current_colors is None or self._renderer is None:
return
self._renderer._set_mesh_scalars(
mesh=self._polydata,
scalars=self._current_colors,
name=self._default_scalars_name,
)
self._polydata[self._default_scalars_name] = self._current_colors

def update(self, colors=None):
if colors is not None and self._cached_colors is not None:
Expand Down
Loading

0 comments on commit 940ac95

Please sign in to comment.