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:
committed by
Brecht Van Lommel
parent
2a85a27609
commit
ea7d97ae48
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user