From 1779452eb455434ae151fa150e028060ddcf1c26 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 1 Jul 2015 16:02:30 +1000 Subject: Cleanup: use swap math funcs --- source/blender/editors/armature/armature_edit.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/blender/editors') 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 -- cgit v1.2.3