From 18060d863207d98a06b743437f2353516605436e Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Fri, 25 Apr 2014 17:07:30 +0200 Subject: Fix T39895: Displaying the armature layers popup in edit mode always fails. In fact, armature layers operators (set layers, and show all) were kind of messy and broken in Edit mode (Select layers had two different operators for Pose and Edit modes, both using the same funcs that could only work in Pose mode, Show All was supposed to be used in both modes but again, its exec code could only work in Pose one). Fixed that by: * Using only one op for each task, for both modes (with adapted poll func). * Replacing 'object from context' access by an helper that returns the right Armature object in both Edit and Pose modes. --- source/blender/editors/armature/armature_intern.h | 1 - 1 file changed, 1 deletion(-) (limited to 'source/blender/editors/armature/armature_intern.h') diff --git a/source/blender/editors/armature/armature_intern.h b/source/blender/editors/armature/armature_intern.h index f3db9042879..1d054ffc2e9 100644 --- a/source/blender/editors/armature/armature_intern.h +++ b/source/blender/editors/armature/armature_intern.h @@ -133,7 +133,6 @@ void POSE_OT_rotation_mode_set(struct wmOperatorType *ot); void POSE_OT_quaternions_flip(struct wmOperatorType *ot); -void POSE_OT_armature_layers(struct wmOperatorType *ot); void POSE_OT_bone_layers(struct wmOperatorType *ot); /* ******************************************************* */ -- cgit v1.2.3