From dba78ebb662bfcaa0e96e5c6cbb2cd4b2e6b7aa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 7 Oct 2024 18:29:44 +0200 Subject: [PATCH] Cleanup: clarify 'disabled' message in `anim.slot_new_for_id` poll function The old text seemed to suggest that an Action Slot can only be created at the moment of assigning the Action to something. That is not the case. The operator just works on the assigned Action, and if none is assigned, there is nothing it can do. --- scripts/startup/bl_operators/anim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/startup/bl_operators/anim.py b/scripts/startup/bl_operators/anim.py index 0c65ca80d8d..3e6f77a354e 100644 --- a/scripts/startup/bl_operators/anim.py +++ b/scripts/startup/bl_operators/anim.py @@ -686,7 +686,7 @@ class ANIM_OT_slot_new_for_id(Operator): if not animated_id: return False if not animated_id.animation_data or not animated_id.animation_data.action: - cls.poll_message_set("An action slot can only be created when an action was assigned") + cls.poll_message_set("An action slot can only be created when an action is assigned") return False 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")