diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-10-27 01:20:12 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-10-27 01:20:12 +0300 |
commit | 7cbbc65faa68628fcd1c9a3c7776d04374aed383 (patch) | |
tree | 22ef576bbd9ae521f79f279640050b542955ce2c /source/blender/editors | |
parent | 254774a988c3ad3a3fc1b4603cec66f0bae00b72 (diff) |
Cleanup: Remove silly redundant if check in ED_armature_edit_select_pick
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/armature/armature_select.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/source/blender/editors/armature/armature_select.c b/source/blender/editors/armature/armature_select.c index b47416b5d5f..216d068558d 100644 --- a/source/blender/editors/armature/armature_select.c +++ b/source/blender/editors/armature/armature_select.c @@ -705,15 +705,13 @@ bool ED_armature_edit_select_pick(bContext *C, const int mval[2], bool extend, b ED_armature_edit_sync_selection(arm->edbo); - if (nearBone) { - /* then now check for active status */ - if (ebone_select_flag(nearBone)) { - arm->act_edbone = nearBone; - } + /* then now check for active status */ + if (ebone_select_flag(nearBone)) { + arm->act_edbone = nearBone; + } - if (vc.view_layer->basact != basact) { - ED_object_base_activate(C, basact); - } + if (vc.view_layer->basact != basact) { + ED_object_base_activate(C, basact); } WM_event_add_notifier(C, NC_OBJECT | ND_BONE_SELECT, basact->object); |