[Bf-blender-cvs] [da6929488a6] master: Fix panel for USD experimental showing for all sections
Campbell Barton
noreply at git.blender.org
Wed Dec 18 23:48:37 CET 2019
Commit: da6929488a6494d85d7d9035063c279c3f03765a
Author: Campbell Barton
Date: Thu Dec 19 09:47:13 2019 +1100
Branches: master
https://developer.blender.org/rBda6929488a6494d85d7d9035063c279c3f03765a
Fix panel for USD experimental showing for all sections
===================================================================
M release/scripts/startup/bl_ui/space_userpref.py
===================================================================
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
More information about the Bf-blender-cvs
mailing list