From 411f399a7fb385bfa88c199b7f50bbc8db806fec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 8 Oct 2024 15:20:55 +0200 Subject: [PATCH] Anim: disable 'New Slot' operator on linked Actions The 'New Slot' operator now checks for editability of the Action. Pull Request: https://projects.blender.org/blender/blender/pulls/128708 --- scripts/startup/bl_operators/anim.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/startup/bl_operators/anim.py b/scripts/startup/bl_operators/anim.py index 3e6f77a354e..44ce27ecf96 100644 --- a/scripts/startup/bl_operators/anim.py +++ b/scripts/startup/bl_operators/anim.py @@ -691,6 +691,9 @@ class ANIM_OT_slot_new_for_id(Operator): if not animated_id.animation_data.action.is_action_layered: cls.poll_message_set("Action slots are only supported by layered Actions. Upgrade this Action first") return False + if not animated_id.animation_data.action.is_editable: + cls.poll_message_set("Creating a new Slot is not possible on a linked Action") + return False return True def execute(self, context):