From 2ae4397ec9905a0055ad80675ade2696137a7ca2 Mon Sep 17 00:00:00 2001 From: Colin Basnett Date: Thu, 23 Jun 2022 11:21:43 +0200 Subject: Armature: Add poll message explaining bone groups need pose mode Add a poll message to the bone group operators, to explain they only work in pose mode. Before, the buttons would be greyed out with no explanation. Reviewed By: sybren Differential Revision: https://developer.blender.org/D15119 --- source/blender/editors/armature/pose_group.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/editors/armature') diff --git a/source/blender/editors/armature/pose_group.c b/source/blender/editors/armature/pose_group.c index d0f0bd55eea..1b78d3cc77e 100644 --- a/source/blender/editors/armature/pose_group.c +++ b/source/blender/editors/armature/pose_group.c @@ -42,6 +42,7 @@ static bool pose_group_poll(bContext *C) { if (!ED_operator_posemode_context(C)) { + CTX_wm_operator_poll_msg_set(C, "Bone groups can only be edited in pose mode"); return false; } -- cgit v1.2.3