mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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:
parent
2a85a27609
commit
ea7d97ae48
1 changed files with 2 additions and 0 deletions
|
|
@ -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 = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue