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:
authorDalai Felinto <dfelinto@gmail.com>2018-10-27 01:20:12 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-10-27 01:20:12 +0300
commit7cbbc65faa68628fcd1c9a3c7776d04374aed383 (patch)
tree22ef576bbd9ae521f79f279640050b542955ce2c /source/blender/editors/armature/armature_select.c
parent254774a988c3ad3a3fc1b4603cec66f0bae00b72 (diff)
Cleanup: Remove silly redundant if check in ED_armature_edit_select_pick
Diffstat (limited to 'source/blender/editors/armature/armature_select.c')
-rw-r--r--source/blender/editors/armature/armature_select.c14
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);