diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-30 18:22:49 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-30 18:22:49 +0400 |
commit | a1856a38f68b5fbb51194fe5f2d09315961bc67a (patch) | |
tree | 385e7974fb1c635eb4964f0f80ce4012924db936 /source/blender/modifiers | |
parent | f4dea6d8294a8ee31e13324d0c80f6992e467ea2 (diff) |
minor improvement to vector api use, replace add, multiply by 0.5 with mid_v3_v3v3
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r-- | source/blender/modifiers/intern/MOD_explode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_explode.c b/source/blender/modifiers/intern/MOD_explode.c index 0e4aa54b4c1..92ad6faa3ce 100644 --- a/source/blender/modifiers/intern/MOD_explode.c +++ b/source/blender/modifiers/intern/MOD_explode.c @@ -669,8 +669,7 @@ static DerivedMesh *cutEdges(ExplodeModifierData *emd, DerivedMesh *dm) mv = CDDM_get_vert(splitdm, ed_v1); - add_v3_v3(dupve->co, mv->co); - mul_v3_fl(dupve->co, 0.5f); + mid_v3_v3v3(dupve->co, dupve->co, mv->co); } BLI_edgehashIterator_free(ehi); |