diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-07-01 09:02:30 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-07-01 09:02:30 +0300 |
commit | 1779452eb455434ae151fa150e028060ddcf1c26 (patch) | |
tree | 0eb506b32bc40387b3db885cd710e69ca800cf35 /source/blender/editors/armature/armature_edit.c | |
parent | 45b221834184e6bdc28e83338014ddea6eb1fad0 (diff) |
Cleanup: use swap math funcs
Diffstat (limited to 'source/blender/editors/armature/armature_edit.c')
-rw-r--r-- | source/blender/editors/armature/armature_edit.c | 4 |
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 |