Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-06-17 18:10:19 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-17 18:10:19 +0300
commit06a1a66a9b6f120867d3bbebe3928744ec8e3495 (patch)
tree42e827a3cf58eb76474e479206b02a8d97dd3bf7 /source/blender/modifiers/intern/MOD_surface.c
parent61d27db35967710421ab92748e09624db068258d (diff)
parenta24b4e6090057479796e914bc603119b12f6ca06 (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/modifiers/intern/MOD_surface.c')
-rw-r--r--source/blender/modifiers/intern/MOD_surface.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/modifiers/intern/MOD_surface.c b/source/blender/modifiers/intern/MOD_surface.c
index 46fd3198699..d6e78c6f19b 100644
--- a/source/blender/modifiers/intern/MOD_surface.c
+++ b/source/blender/modifiers/intern/MOD_surface.c
@@ -54,10 +54,10 @@
#include "MEM_guardedalloc.h"
-static void initData(ModifierData *md)
+static void initData(ModifierData *md)
{
SurfaceModifierData *surmd = (SurfaceModifierData *) md;
-
+
surmd->bvhtree = NULL;
}
@@ -77,7 +77,7 @@ static void freeData(ModifierData *md)
}
MEM_SAFE_FREE(surmd->x);
-
+
MEM_SAFE_FREE(surmd->v);
}
}
@@ -95,7 +95,7 @@ static void deformVerts(
{
SurfaceModifierData *surmd = (SurfaceModifierData *) md;
const int cfra = (int)DEG_get_ctime(ctx->depsgraph);
-
+
if (surmd->mesh) {
BKE_id_free(NULL, surmd->mesh);
}
@@ -112,7 +112,7 @@ static void deformVerts(
false);
}
else surmd->mesh = get_mesh(ctx->object, NULL, NULL, NULL, false, false);
-
+
if (!ctx->object->pd) {
printf("SurfaceModifier deformVerts: Should not happen!\n");
return;
@@ -126,7 +126,7 @@ static void deformVerts(
BKE_mesh_apply_vert_coords(surmd->mesh, vertexCos);
BKE_mesh_calc_normals(surmd->mesh);
-
+
numverts = surmd->mesh->totvert;
if (numverts != surmd->numverts ||
@@ -160,7 +160,7 @@ static void deformVerts(
v->co[0] = v->co[1] = v->co[2] = 0.0f;
else
sub_v3_v3v3(v->co, vec, x->co);
-
+
copy_v3_v3(x->co, vec);
}