Performace Test: Avoid errors in lite build #120442

Open
Iliya Katushenock wants to merge 1 commits from mod_moder/blender:benchmark_no_cycle_addon into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 2 additions and 0 deletions

View File

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