diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-10 07:21:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-10 07:21:11 +0300 |
commit | 2b5d4d426a9b8483539d14b6e9ab90da262c2ecb (patch) | |
tree | c2e417567e2661fdf2a6e8c0cf12efef55affce7 /source/blender/editors/armature/armature_select.c | |
parent | bb9b0fcdbe9b9d180f40f8383ea3f8890c8aa5d2 (diff) |
Cleanup: use function to set the active base
Diffstat (limited to 'source/blender/editors/armature/armature_select.c')
-rw-r--r-- | source/blender/editors/armature/armature_select.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/armature/armature_select.c b/source/blender/editors/armature/armature_select.c index 365771a1430..bccc8c795b3 100644 --- a/source/blender/editors/armature/armature_select.c +++ b/source/blender/editors/armature/armature_select.c @@ -54,6 +54,7 @@ #include "WM_types.h" #include "ED_armature.h" +#include "ED_object.h" #include "ED_screen.h" #include "ED_select_utils.h" #include "ED_view3d.h" @@ -723,9 +724,7 @@ bool ED_armature_edit_select_pick(bContext *C, const int mval[2], bool extend, b } if (vc.view_layer->basact != basact) { - vc.view_layer->basact = basact; - DEG_id_tag_update(&vc.scene->id, DEG_TAG_SELECT_UPDATE); - WM_event_add_notifier(C, NC_SCENE | ND_OB_ACTIVE, vc.scene); + ED_object_base_activate(C, basact); } } |