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:
authorJoshua Leung <aligorith@gmail.com>2017-11-19 16:56:40 +0300
committerJoshua Leung <aligorith@gmail.com>2017-11-19 16:56:40 +0300
commit2317fa6dcc6c7b3aae11a0916130277ed723333b (patch)
tree03945e26c076daf11063842b7090456754a18b37 /source/blender/editors/armature
parent6f578740ef1b29723d37e9ec09721f58879615c1 (diff)
Cleanup - Style
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r--source/blender/editors/armature/armature_add.c12
1 files changed, 9 insertions, 3 deletions
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);