Skip to content

Commit

Permalink
FIX: No conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Sep 8, 2023
1 parent f0c9363 commit 97294ef
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions mne/viz/backends/_pyvista.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,12 +862,11 @@ def project(self, xyz, ch_names):
return _Projection(xy=xy, pts=pts, plotter=self.plotter)

def _enable_depth_peeling(self):
if not self.figure.store["off_screen"]:
for plotter in self._all_plotters:
if self.depth_peeling:
plotter.enable_depth_peeling()
else:
plotter.disable_depth_peeling()
for plotter in self._all_plotters:
if self.depth_peeling:
plotter.enable_depth_peeling()
else:
plotter.disable_depth_peeling()

def _toggle_antialias(self):
"""Enable it everywhere except Azure."""
Expand Down

0 comments on commit 97294ef

Please sign in to comment.