diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/python/bl_load_addons.py | 3 | ||||
-rw-r--r-- | tests/python/bl_load_py_modules.py | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/python/bl_load_addons.py b/tests/python/bl_load_addons.py index bb730bc362c..f0c2f3f7fdf 100644 --- a/tests/python/bl_load_addons.py +++ b/tests/python/bl_load_addons.py @@ -50,6 +50,9 @@ def _init_addon_blacklist(): # netrender has known problems re-registering BLACKLIST_ADDONS.add("netrender") + if not bpy.app.build_options.xr_openxr: + BLACKLIST_ADDONS.add("viewport_vr_preview") + for mod in addon_utils.modules(): if addon_utils.module_bl_info(mod)['blender'] < (2, 80, 0): BLACKLIST_ADDONS.add(mod.__name__) diff --git a/tests/python/bl_load_py_modules.py b/tests/python/bl_load_py_modules.py index 2252af7a02f..5d1a5dd8ee0 100644 --- a/tests/python/bl_load_py_modules.py +++ b/tests/python/bl_load_py_modules.py @@ -56,6 +56,9 @@ MODULE_SYS_PATHS = { if not bpy.app.build_options.freestyle: BLACKLIST.add("render_freestyle_svg") +if not bpy.app.build_options.xr_openxr: + BLACKLIST.add("viewport_vr_preview") + BLACKLIST_DIRS = ( os.path.join(bpy.utils.resource_path('USER'), "scripts"), ) + tuple(addon_utils.paths()[1:]) |