diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-05-19 18:25:06 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-05-19 18:26:34 +0400 |
commit | 85975be58e626356a1be108ff4a0f5f3b3b8c9d2 (patch) | |
tree | f3fb5da4fee5137f286bd9ea7b41be54d24fe349 /source/blender/editors/armature/pose_edit.c | |
parent | 6271c72cafa576faf4c98e326fbed4aeccf7ab12 (diff) |
Show warning when hiding a proxy bone
It can't be undoe with Ctrl-Z, but Alt-H works just fine.
So instead of breaking someone's workflow let's just add
an info about how to bring bones back.
Diffstat (limited to 'source/blender/editors/armature/pose_edit.c')
-rw-r--r-- | source/blender/editors/armature/pose_edit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/armature/pose_edit.c b/source/blender/editors/armature/pose_edit.c index de8b2e36d5b..890bf6649b9 100644 --- a/source/blender/editors/armature/pose_edit.c +++ b/source/blender/editors/armature/pose_edit.c @@ -1034,6 +1034,10 @@ static int pose_hide_exec(bContext *C, wmOperator *op) Object *ob = BKE_object_pose_armature_get(CTX_data_active_object(C)); bArmature *arm = ob->data; + if (ob->proxy != NULL) { + BKE_report(op->reports, RPT_INFO, "Undo of hiding can only be done with Reveal Selected"); + } + if (RNA_boolean_get(op->ptr, "unselected")) bone_looper(ob, arm->bonebase.first, NULL, hide_unselected_pose_bone_cb); else |