Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-10-24 16:40:21 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-10-24 16:49:39 +0300
commitce6e7a094173c288e497e982c55b33f2135d83be (patch)
treed2a9a7c3920600eb5db03e2fda1d0cd25c96a5e6 /source/blender/editors/space_outliner/outliner_select.c
parent88a346420beb9544afecbc96292a35900e845255 (diff)
Fix T60689: Flip Active/Selected bone fails in weight paint mode
Multiple selection operations failed with weight-paint + pose mode. Weight-paint + pose mode is a special case that doesn't support multi-pose mode, so we need to use this instead of the generic function.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_select.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_select.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c
index f1e884adc3d..19bbb115788 100644
--- a/source/blender/editors/space_outliner/outliner_select.c
+++ b/source/blender/editors/space_outliner/outliner_select.c
@@ -610,8 +610,8 @@ static eOLDrawState tree_element_active_posechannel(bContext *C,
if (set != OL_SETSEL_EXTEND) {
/* Single select forces all other bones to get unselected. */
uint objects_len = 0;
- Object **objects = BKE_view_layer_array_from_objects_in_mode_unique_data(
- view_layer, NULL, &objects_len, OB_MODE_POSE);
+ Object **objects = BKE_object_pose_array_get_unique(view_layer, NULL, &objects_len);
+
for (uint object_index = 0; object_index < objects_len; object_index++) {
Object *ob_iter = BKE_object_pose_armature_get(objects[object_index]);