diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-10-10 02:41:57 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-10-10 02:42:54 +0300 |
commit | 2a2858b30dbbc19246446bcc89a7a4e7f67c7ce0 (patch) | |
tree | 13e7eb21366395bb13365508ab8cd744680673c2 /source/blender/editors/armature/pose_edit.c | |
parent | 4fa39d9df8f9e2dac8acb0bfd4887758c905def0 (diff) |
Fix for ARMATURE_OT_layers_show_all in pose mode
Diffstat (limited to 'source/blender/editors/armature/pose_edit.c')
-rw-r--r-- | source/blender/editors/armature/pose_edit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/armature/pose_edit.c b/source/blender/editors/armature/pose_edit.c index 89961b50609..13a54770338 100644 --- a/source/blender/editors/armature/pose_edit.c +++ b/source/blender/editors/armature/pose_edit.c @@ -901,6 +901,7 @@ static bArmature *armature_layers_get_data(Object **ob) static int pose_armature_layers_showall_exec(bContext *C, wmOperator *op) { ViewLayer *view_layer = CTX_data_view_layer(C); + Object *ob_active = CTX_data_active_object(C); const int maxLayers = (RNA_boolean_get(op->ptr, "all")) ? 32 : 16; bool layers[32] = {false}; /* hardcoded for now - we can only have 32 armature layers, so this should be fine... */ @@ -910,7 +911,7 @@ static int pose_armature_layers_showall_exec(bContext *C, wmOperator *op) } uint objects_len = 0; - Object **objects = BKE_view_layer_array_from_objects_in_edit_mode_unique_data(view_layer, &objects_len); + Object **objects = BKE_view_layer_array_from_objects_in_mode_unique_data(view_layer, &objects_len, ob_active->mode); for (uint ob_index = 0; ob_index < objects_len; ob_index++) { Object *ob = objects[ob_index]; bArmature *arm = armature_layers_get_data(&ob); |