[Bf-blender-cvs] [2ae4397ec99] master: Armature: Add poll message explaining bone groups need pose mode

Colin Basnett noreply at git.blender.org
Thu Jun 23 11:37:39 CEST 2022


Commit: 2ae4397ec9905a0055ad80675ade2696137a7ca2
Author: Colin Basnett
Date:   Thu Jun 23 11:21:43 2022 +0200
Branches: master
https://developer.blender.org/rB2ae4397ec9905a0055ad80675ade2696137a7ca2

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

===================================================================

M	source/blender/editors/armature/pose_group.c

===================================================================

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;
   }



More information about the Bf-blender-cvs mailing list