diff options
Diffstat (limited to 'source/blender/modifiers/intern/MOD_surface.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_surface.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/source/blender/modifiers/intern/MOD_surface.c b/source/blender/modifiers/intern/MOD_surface.c index 7e85acd47e9..ccb6e79eb64 100644 --- a/source/blender/modifiers/intern/MOD_surface.c +++ b/source/blender/modifiers/intern/MOD_surface.c @@ -59,9 +59,8 @@ static void initData(ModifierData *md) static void freeData(ModifierData *md) { SurfaceModifierData *surmd = (SurfaceModifierData*) md; - - if (surmd) - { + + if (surmd) { if(surmd->bvhtree) { free_bvhtree_from_mesh(surmd->bvhtree); MEM_freeN(surmd->bvhtree); @@ -102,14 +101,12 @@ static void deformVerts(ModifierData *md, Object *ob, if(derivedData) surmd->dm = CDDM_copy(derivedData); else surmd->dm = get_dm(ob, NULL, NULL, NULL, 0); - if(!ob->pd) - { + if (!ob->pd) { printf("SurfaceModifier deformVerts: Should not happen!\n"); return; } - - if(surmd->dm) - { + + if(surmd->dm) { unsigned int numverts = 0, i = 0; int init = 0; float *vec; |