diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2014-09-20 23:05:46 +0400 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2015-01-20 11:30:02 +0300 |
commit | 491e7493c7f35a0b2d03a9fc6e934e5868c88b10 (patch) | |
tree | f3d5b295e104df491250db5701d0a41af3f4d66d /source/blender/modifiers | |
parent | 00bb836e17de349b7e4f9478b1911f8de8e0b334 (diff) |
Basic solver result feedback from the mass-spring (cloth/hair) solver.
This returns a general status (success/no-convergence/other) along with
basic statistics (min/max/average) for the error value and the number
of iterations. It allows some general estimation of the simulation
quality and detection of critical settings that could become a problem.
Better visualization and extended feedback can follow later.
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r-- | source/blender/modifiers/intern/MOD_cloth.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_cloth.c b/source/blender/modifiers/intern/MOD_cloth.c index 5c5e38f3444..1b513dd5727 100644 --- a/source/blender/modifiers/intern/MOD_cloth.c +++ b/source/blender/modifiers/intern/MOD_cloth.c @@ -179,6 +179,7 @@ static void copyData(ModifierData *md, ModifierData *target) tclmd->point_cache->step = 1; tclmd->clothObject = NULL; tclmd->roots = NULL; + tclmd->solver_result = NULL; tclmd->debug_data = NULL; } @@ -211,6 +212,9 @@ static void freeData(ModifierData *md) if (clmd->roots) MEM_freeN(clmd->roots); + if (clmd->solver_result) + MEM_freeN(clmd->solver_result); + BKE_sim_debug_data_free(clmd->debug_data); } } |