Fix panel for USD experimental showing for all sections

This commit is contained in:
Campbell Barton 2019-12-19 09:47:13 +11:00
parent 9ae097e239
commit da6929488a
Notes: blender-bot 2023-02-13 23:54:26 +01:00
Referenced by issue #72551, USD showing up in the Themes section
1 changed files with 3 additions and 1 deletions

View File

@ -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