Tests: Avoid error in performance tests with lite build

There is no Cycles add-on in a lite build.

Pull Request: https://projects.blender.org/blender/blender/pulls/120442
This commit is contained in:
Iliya Katueshenock
2025-01-25 21:12:45 +01:00
committed by Brecht Van Lommel
parent 2a85a27609
commit ea7d97ae48

View File

@@ -27,6 +27,8 @@ def get_gpu_device(args: None) -> list:
import bpy
prefs = bpy.context.preferences
if 'cycles' not in prefs.addons.keys():
return []
cprefs = prefs.addons['cycles'].preferences
result = []