Fix for POSE_OT_select_mirror

It was not taking duplicated objects into consideration, so the operator would
only work if you had an off number of objects with the same armature.
This commit is contained in:
Dalai Felinto
2018-10-02 17:22:43 +00:00
parent 8b2bcce3d2
commit 2a7ccf6e88
2 changed files with 22 additions and 15 deletions

View File

@@ -381,6 +381,11 @@ bool BKE_view_layer_filter_edit_mesh_has_edges(struct Object *ob, void *user_dat
.no_dup_data = true, \
.filter_fn = BKE_view_layer_filter_edit_mesh_has_uvs});
#define BKE_view_layer_array_from_objects_in_mode_unique_data(view_layer, r_len, mode) \
BKE_view_layer_array_from_objects_in_mode( \
view_layer, r_len, { \
.object_mode = mode, \
.no_dup_data = true});
#ifdef __cplusplus
}