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:
authorCampbell Barton <ideasman42@gmail.com>2015-07-01 09:02:30 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-07-01 09:02:30 +0300
commit1779452eb455434ae151fa150e028060ddcf1c26 (patch)
tree0eb506b32bc40387b3db885cd710e69ca800cf35 /source/blender/editors
parent45b221834184e6bdc28e83338014ddea6eb1fad0 (diff)
Cleanup: use swap math funcs
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/armature/armature_edit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/armature/armature_edit.c b/source/blender/editors/armature/armature_edit.c
index b3297db6176..1b9a09bd2c5 100644
--- a/source/blender/editors/armature/armature_edit.c
+++ b/source/blender/editors/armature/armature_edit.c
@@ -988,9 +988,7 @@ static int armature_switch_direction_exec(bContext *C, wmOperator *UNUSED(op))
/* only if selected and editable */
if (EBONE_VISIBLE(arm, ebo) && EBONE_EDITABLE(ebo)) {
/* swap head and tail coordinates */
- SWAP(float, ebo->head[0], ebo->tail[0]);
- SWAP(float, ebo->head[1], ebo->tail[1]);
- SWAP(float, ebo->head[2], ebo->tail[2]);
+ swap_v3_v3(ebo->head, ebo->tail);
/* do parent swapping:
* - use 'child' as new parent