Anim: only show Action Slot panel when experimental flag set

Only show the Action Slot panel in the dope sheet when the experimental
flag is set.
This commit is contained in:
Sybren A. Stüvel
2024-07-25 11:41:37 +02:00
parent 9427ec3f40
commit da458c66e5

View File

@@ -644,6 +644,8 @@ class DOPESHEET_PT_action_slot(Panel):
@classmethod
def poll(cls, context):
if not context.preferences.experimental.use_animation_baklava:
return False
action = context.active_action
return bool(action and action.slots.active)