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:04:27 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-17 18:04:27 +0300
commit1eed46c788f1c9e0d92985857bdbf5a7045f6791 (patch)
tree41af1e5f961d9fc62214b0498bb4cc0d2b07656f /source/blender/modifiers/intern/MOD_cloth.c
parent78fbd146f3cd9a5c97307ff6f2d14422e7ae54b9 (diff)
Cleanup: trailing space for modifiers
Diffstat (limited to 'source/blender/modifiers/intern/MOD_cloth.c')
-rw-r--r--source/blender/modifiers/intern/MOD_cloth.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/source/blender/modifiers/intern/MOD_cloth.c b/source/blender/modifiers/intern/MOD_cloth.c
index 5b7ebe94c32..0317e0a92e4 100644
--- a/source/blender/modifiers/intern/MOD_cloth.c
+++ b/source/blender/modifiers/intern/MOD_cloth.c
@@ -57,18 +57,18 @@
#include "MOD_util.h"
-static void initData(ModifierData *md)
+static void initData(ModifierData *md)
{
ClothModifierData *clmd = (ClothModifierData *) md;
-
+
clmd->sim_parms = MEM_callocN(sizeof(ClothSimSettings), "cloth sim parms");
clmd->coll_parms = MEM_callocN(sizeof(ClothCollSettings), "cloth coll parms");
clmd->point_cache = BKE_ptcache_add(&clmd->ptcaches);
-
+
/* check for alloc failing */
if (!clmd->sim_parms || !clmd->coll_parms || !clmd->point_cache)
return;
-
+
cloth_init(clmd);
}
@@ -78,7 +78,7 @@ static void deformVerts(
{
DerivedMesh *dm;
ClothModifierData *clmd = (ClothModifierData *) md;
-
+
/* check for alloc failing */
if (!clmd->sim_parms || !clmd->coll_parms) {
initData(md);
@@ -121,7 +121,7 @@ static void deformVerts(
static void updateDepgraph(ModifierData *md, const ModifierUpdateDepsgraphContext *ctx)
{
ClothModifierData *clmd = (ClothModifierData *) md;
-
+
if (clmd) {
/* Actual code uses get_collisionobjects */
#ifdef WITH_LEGACY_DEPSGRAPH
@@ -171,7 +171,7 @@ static void copyData(const ModifierData *md, ModifierData *target)
if (tclmd->coll_parms)
MEM_freeN(tclmd->coll_parms);
-
+
BKE_ptcache_free_list(&tclmd->ptcaches);
tclmd->point_cache = NULL;
@@ -194,13 +194,13 @@ static bool dependsOnTime(ModifierData *UNUSED(md))
static void freeData(ModifierData *md)
{
ClothModifierData *clmd = (ClothModifierData *) md;
-
+
if (clmd) {
if (G.debug_value > 0)
printf("clothModifier_freeData\n");
-
+
cloth_free_modifier_extern(clmd);
-
+
if (clmd->sim_parms) {
if (clmd->sim_parms->effector_weights)
MEM_freeN(clmd->sim_parms->effector_weights);
@@ -208,13 +208,13 @@ static void freeData(ModifierData *md)
}
if (clmd->coll_parms)
MEM_freeN(clmd->coll_parms);
-
+
BKE_ptcache_free_list(&clmd->ptcaches);
clmd->point_cache = NULL;
-
+
if (clmd->hairdata)
MEM_freeN(clmd->hairdata);
-
+
if (clmd->solver_result)
MEM_freeN(clmd->solver_result);
}