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:
authorDaniel Genrich <daniel.genrich@gmx.net>2008-02-28 03:01:19 +0300
committerDaniel Genrich <daniel.genrich@gmx.net>2008-02-28 03:01:19 +0300
commit905a2d374a9b418fe2d358f4c7fdbc12a6253f91 (patch)
tree11fd4523fd432d9fce60e6f73827f056a7d9f176 /source/blender/blenloader
parent62bd1b85e63d996dbe1c50fe5a47df236001e147 (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.c3
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) {