diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-02-27 14:16:27 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-02-27 14:16:27 +0300 |
commit | 35290f5d4e9c2ed777728ee74c8e3b2c23893249 (patch) | |
tree | f3745960ba818e573e8fd528a4f8cec9908d651f /source | |
parent | edba025c92e637d956e37434170a68fc3f0e0b9b (diff) |
Bring back border selection
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_select.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_view3d/view3d_select.c b/source/blender/editors/space_view3d/view3d_select.c index 66c074d1417..0a031555dff 100644 --- a/source/blender/editors/space_view3d/view3d_select.c +++ b/source/blender/editors/space_view3d/view3d_select.c @@ -2023,11 +2023,11 @@ static int do_object_pose_box_select(bContext *C, ViewContext *vc, rcti *rect, b */ if (hits > 0) { /* no need to loop if there's no hit */ - BaseLegacy *base; + Base *base; col = vbuffer + 3; - for (base = vc->scene->base.first; base && hits; base = base->next) { - if (BASE_SELECTABLE(vc->v3d, base)) { + for (base = vc->sl->object_bases.first; base && hits; base = base->next) { + if (BASE_SELECTABLE_NEW(base)) { while (base->selcol == (*col & 0xFFFF)) { /* we got an object */ if (*col & 0xFFFF0000) { /* we got a bone */ bone = get_indexed_bone(base->object, *col & ~(BONESEL_ANY)); @@ -2047,7 +2047,7 @@ static int do_object_pose_box_select(bContext *C, ViewContext *vc, rcti *rect, b } } else if (!bone_only) { - ED_base_object_select(base, select ? BA_SELECT : BA_DESELECT); + ED_object_base_select(base, select ? BA_SELECT : BA_DESELECT); } col += 4; /* next color */ |