diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-11-24 03:14:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-11-24 03:14:45 +0300 |
commit | 403f00e558992dd040f9d13c142e28781f7cfe84 (patch) | |
tree | 6ff36902d08c26566922300a0fcd73ce6e483cd7 /release | |
parent | def365e252524915f1c02bc7172e0113c21f5ada (diff) |
Fix prefs UI when built w/o Cycles
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_userpref.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index bdbb6330232..e5b6a94c1ab 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -429,8 +429,11 @@ class USERPREF_PT_system(Panel): col.separator() - if userpref.addons.find('cycles') != -1: - userpref.addons['cycles'].preferences.draw_impl(col, context) + if bpy.app.build_options.cycles: + addon = userpref.addons.get("cycles") + if addon is not None: + addon.preferences.draw_impl(col, context) + del addon if hasattr(system, "opensubdiv_compute_type"): col.label(text="OpenSubdiv compute:") |