[Bf-blender-cvs] [7cbbc65faa6] blender2.8: Cleanup: Remove silly redundant if check in ED_armature_edit_select_pick
Dalai Felinto
noreply at git.blender.org
Sat Oct 27 00:22:07 CEST 2018
Commit: 7cbbc65faa68628fcd1c9a3c7776d04374aed383
Author: Dalai Felinto
Date: Fri Oct 26 19:20:12 2018 -0300
Branches: blender2.8
https://developer.blender.org/rB7cbbc65faa68628fcd1c9a3c7776d04374aed383
Cleanup: Remove silly redundant if check in ED_armature_edit_select_pick
===================================================================
M source/blender/editors/armature/armature_select.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list