diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3ea1cd008a4..ba829bb1291 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -249,6 +249,7 @@ stages: PYTHONUNBUFFERED: 1 PYTHONIOENCODING: 'utf-8' AZURE_CI_WINDOWS: 'true' + MNE_3D_OPTION_ANTIALIAS: 'false' PYTHON_ARCH: 'x64' timeoutInMinutes: 70 strategy: diff --git a/mne/viz/backends/_pyvista.py b/mne/viz/backends/_pyvista.py index b622f7cce59..dbf04335598 100644 --- a/mne/viz/backends/_pyvista.py +++ b/mne/viz/backends/_pyvista.py @@ -13,7 +13,6 @@ from contextlib import contextmanager from inspect import signature -import os import re import sys import warnings @@ -879,11 +878,9 @@ def _toggle_antialias(self): # For Mayavi we have an "on activated" event or so, we should look into # using this for Azure at some point, too. if self.figure._is_active(): - # Azure - bad_system = os.getenv("AZURE_CI_WINDOWS", "false").lower() == "true" # MESA can't seem to handle MSAA and depth peeling simultaneously, see # https://github.com/pyvista/pyvista/issues/4867 - bad_system |= _is_mesa(self.plotter) + bad_system = _is_mesa(self.plotter) for plotter in self._all_plotters: if bad_system or not self.antialias: plotter.disable_anti_aliasing()