diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-12-16 15:32:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-12-16 15:32:10 +0300 |
commit | 882d85a96827cb50d1fc4a2ac1d63b902aab8f86 (patch) | |
tree | d9c779a282ac712ed4a522ad2380c72c1668fa04 /source/blender/blenlib/intern/graph.c | |
parent | 4da3c4b9d5ede4369467165cb9f31eee4385a353 (diff) |
Patch from Banlu Kemiyatorn
replace VecMulf(var,-1) with new VecNegf(var) function.
Diffstat (limited to 'source/blender/blenlib/intern/graph.c')
-rw-r--r-- | source/blender/blenlib/intern/graph.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/graph.c b/source/blender/blenlib/intern/graph.c index 8f35b38379e..bcd8a2ce7cd 100644 --- a/source/blender/blenlib/intern/graph.c +++ b/source/blender/blenlib/intern/graph.c @@ -809,15 +809,15 @@ static void testAxialSymmetry(BGraph *graph, BNode* root_node, BNode* node1, BNo if (abs(nor[0]) > abs(nor[1]) && abs(nor[0]) > abs(nor[2]) && nor[0] < 0) { - VecMulf(nor, -1); + VecNegf(nor); } else if (abs(nor[1]) > abs(nor[0]) && abs(nor[1]) > abs(nor[2]) && nor[1] < 0) { - VecMulf(nor, -1); + VecNegf(nor); } else if (abs(nor[2]) > abs(nor[1]) && abs(nor[2]) > abs(nor[0]) && nor[2] < 0) { - VecMulf(nor, -1); + VecNegf(nor); } /* mirror node2 along axis */ |