diff options
Diffstat (limited to 'source/blender/modifiers/intern/MOD_explode.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_explode.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/source/blender/modifiers/intern/MOD_explode.c b/source/blender/modifiers/intern/MOD_explode.c index 81248aa8e09..5c8bf972921 100644 --- a/source/blender/modifiers/intern/MOD_explode.c +++ b/source/blender/modifiers/intern/MOD_explode.c @@ -38,12 +38,13 @@ #include "BLI_kdtree.h" #include "BLI_rand.h" -#include "BLI_uvproject.h" +#include "BLI_math.h" +#include "BLI_edgehash.h" #include "MEM_guardedalloc.h" -#include "DNA_armature_types.h" -#include "DNA_camera_types.h" +#include "DNA_meshdata_types.h" +#include "DNA_scene_types.h" #include "DNA_curve_types.h" #include "DNA_key_types.h" #include "DNA_material_types.h" @@ -51,12 +52,9 @@ #include "BKE_action.h" -#include "BKE_bmesh.h" -#include "BKE_cloth.h" #include "BKE_cdderivedmesh.h" #include "BKE_displist.h" #include "BKE_fluidsim.h" -#include "BKE_global.h" #include "BKE_multires.h" #include "BKE_key.h" #include "BKE_lattice.h" @@ -72,6 +70,7 @@ #include "BKE_softbody.h" #include "BKE_subsurf.h" #include "BKE_texture.h" +#include "BKE_utildefines.h" #include "depsgraph_private.h" #include "BKE_deform.h" @@ -362,8 +361,8 @@ static DerivedMesh * splitEdges(ExplodeModifierData *emd, DerivedMesh *dm){ mv=CDDM_get_vert(splitdm,i); - VECADD(dupve->co,dupve->co,mv->co); - mul_v3_fl(dupve->co,0.5); + add_v3_v3(dupve->co, mv->co); + mul_v3_fl(dupve->co, 0.5f); } BLI_edgehashIterator_free(ehi); |