diff options
Diffstat (limited to 'source/blender/modifiers/intern/MOD_cloth.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_cloth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/modifiers/intern/MOD_cloth.c b/source/blender/modifiers/intern/MOD_cloth.c index 1b513dd5727..3d5caf6570b 100644 --- a/source/blender/modifiers/intern/MOD_cloth.c +++ b/source/blender/modifiers/intern/MOD_cloth.c @@ -178,7 +178,7 @@ static void copyData(ModifierData *md, ModifierData *target) tclmd->point_cache = BKE_ptcache_add(&tclmd->ptcaches); tclmd->point_cache->step = 1; tclmd->clothObject = NULL; - tclmd->roots = NULL; + tclmd->hairdata = NULL; tclmd->solver_result = NULL; tclmd->debug_data = NULL; } @@ -209,8 +209,8 @@ static void freeData(ModifierData *md) BKE_ptcache_free_list(&clmd->ptcaches); clmd->point_cache = NULL; - if (clmd->roots) - MEM_freeN(clmd->roots); + if (clmd->hairdata) + MEM_freeN(clmd->hairdata); if (clmd->solver_result) MEM_freeN(clmd->solver_result); |