diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-12-19 01:47:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-12-19 01:47:13 +0300 |
commit | da6929488a6494d85d7d9035063c279c3f03765a (patch) | |
tree | ee3e5ea261c5e5defe83dfbe6a22587b663c00b3 /release/scripts/startup/bl_ui/space_userpref.py | |
parent | 9ae097e239a943a9b409155b943bc5510d14d9c8 (diff) |
Fix panel for USD experimental showing for all sections
Diffstat (limited to 'release/scripts/startup/bl_ui/space_userpref.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_userpref.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index ae77b9df01b..b670376c453 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -2227,8 +2227,10 @@ class USERPREF_PT_experimental_usd(ExperimentalPanel, Panel): @classmethod def poll(cls, context): + if not super().poll(context): + return False # Only show the panel if Blender was actually built with USD support. - return getattr(bpy.app.build_options, 'usd', False) + return getattr(bpy.app.build_options, "usd", False) def draw_props(self, context, layout): prefs = context.preferences |