From 7be628b396094b4552eeeb4e25b01571a6fef22e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 18 Sep 2023 14:47:46 +0200 Subject: [PATCH] Anim: bone collections: make the "(de)select bones" work on linked arms The "(de)select bones in collection" operators only change the selection state on the pose (when in pose mode), and thus should be able to work even when the armature (which contains the bone collections) is read-only. --- source/blender/editors/armature/bone_collections.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/blender/editors/armature/bone_collections.cc b/source/blender/editors/armature/bone_collections.cc index 950bfacc1c9..9d9b6bf6e27 100644 --- a/source/blender/editors/armature/bone_collections.cc +++ b/source/blender/editors/armature/bone_collections.cc @@ -502,8 +502,9 @@ static bool armature_bone_select_poll(bContext *C) /* For bone selection, at least the pose should be editable to actually store * the selection state. */ - if (ID_IS_LINKED(ob->data) && !ID_IS_OVERRIDE_LIBRARY(ob->data)) { - CTX_wm_operator_poll_msg_set(C, "Cannot (de)select bones on linked Armature"); + if (ID_IS_LINKED(ob) && !ID_IS_OVERRIDE_LIBRARY(ob)) { + CTX_wm_operator_poll_msg_set( + C, "Cannot (de)select bones on linked object, that would need an override"); return false; }