diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-06 22:40:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-06 22:40:15 +0400 |
commit | 31d2ee9bf77bb991ea4779c47379b2cee84b27ed (patch) | |
tree | fd6f021356fc78d6dfeff9f18f601ce645dd7ffe /source/blender/modifiers/intern/MOD_surface.c | |
parent | 7b7214c72233f72268f72d31fd8626a0f94e557e (diff) |
style cleanup, brackets in else/if, some indentation.
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; |