From 1b5c8963464ca2ebb4554e95551e21d57540504f Mon Sep 17 00:00:00 2001 From: Pratik Borhade Date: Tue, 19 Aug 2025 10:10:41 +0200 Subject: [PATCH] Fix #144371: Prevent inserting keyframes on linked action When action is linked/overridden, it should not be editable. In this situation, exit early from `insert_keyframes` to avoid inserting keys on linked ID. Pull Request: https://projects.blender.org/blender/blender/pulls/144416 --- source/blender/animrig/intern/keyframing.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/blender/animrig/intern/keyframing.cc b/source/blender/animrig/intern/keyframing.cc index a4eb8ae24dc..380b98a187b 100644 --- a/source/blender/animrig/intern/keyframing.cc +++ b/source/blender/animrig/intern/keyframing.cc @@ -1030,6 +1030,13 @@ CombinedKeyingResult insert_keyframes(Main *bmain, return combined_result; } + if (const bAction *action = adt->action) { + if (ID_IS_LINKED(action) || ID_IS_OVERRIDE_LIBRARY(action)) { + combined_result.add(SingleKeyingResult::ID_NOT_EDITABLE, rna_paths.size()); + return combined_result; + } + } + bAction *dna_action = id_action_ensure(bmain, id); BLI_assert(dna_action != nullptr); Action &action = dna_action->wrap();