[Bf-blender-cvs] [2317fa6dcc6] master: Cleanup - Style
Joshua Leung
noreply at git.blender.org
Sun Nov 19 14:56:48 CET 2017
Commit: 2317fa6dcc6c7b3aae11a0916130277ed723333b
Author: Joshua Leung
Date: Mon Nov 20 02:56:40 2017 +1300
Branches: master
https://developer.blender.org/rB2317fa6dcc6c7b3aae11a0916130277ed723333b
Cleanup - Style
===================================================================
M source/blender/editors/armature/armature_add.c
===================================================================
diff --git a/source/blender/editors/armature/armature_add.c b/source/blender/editors/armature/armature_add.c
index 3d0981ea6c8..368d54fc3ad 100644
--- a/source/blender/editors/armature/armature_add.c
+++ b/source/blender/editors/armature/armature_add.c
@@ -944,10 +944,16 @@ static int armature_extrude_exec(bContext *C, wmOperator *op)
}
}
/* if only one bone, make this one active */
- if (totbone == 1 && first) arm->act_edbone = first;
- else arm->act_edbone = newbone;
+ if (totbone == 1 && first) {
+ arm->act_edbone = first;
+ }
+ else {
+ arm->act_edbone = newbone;
+ }
- if (totbone == 0) return OPERATOR_CANCELLED;
+ if (totbone == 0) {
+ return OPERATOR_CANCELLED;
+ }
/* Transform the endpoints */
ED_armature_sync_selection(arm->edbo);
More information about the Bf-blender-cvs
mailing list