Fix panel for USD experimental showing for all sections
This commit is contained in:
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
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue