diff options
author | Daniel Genrich <daniel.genrich@gmx.net> | 2008-02-28 03:01:19 +0300 |
---|---|---|
committer | Daniel Genrich <daniel.genrich@gmx.net> | 2008-02-28 03:01:19 +0300 |
commit | 905a2d374a9b418fe2d358f4c7fdbc12a6253f91 (patch) | |
tree | 11fd4523fd432d9fce60e6f73827f056a7d9f176 /source/blender/blenloader | |
parent | 62bd1b85e63d996dbe1c50fe5a47df236001e147 (diff) |
Cloth: 1. Bugfix for possible memory leak reported by Kenneth Styrberg (via mailing list), 2. Bugfix for friction again, 3. Preset menu on GUI (thanks to help from nudelZ (#blendercoders), 4. Possibility to disable autoprotect cache, 5. Some cache bugs fixed, 6. Some speedup in generating cloth
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 6feb0d1cc2d..66d3fcd4729 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -3037,6 +3037,9 @@ static void direct_link_modifiers(FileData *fd, ListBase *lb) clmd->sim_parms->flags |= CLOTH_SIMSETTINGS_FLAG_LOADED; clmd->sim_parms->flags &= ~CLOTH_SIMSETTINGS_FLAG_EDITMODE; + if(clmd->sim_parms->presets > 10) + clmd->sim_parms->presets = 0; + } else if (md->type==eModifierType_Collision) { |