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:
authorJanne Karhu <jhkarh@gmail.com>2010-03-09 07:38:51 +0300
committerJanne Karhu <jhkarh@gmail.com>2010-03-09 07:38:51 +0300
commit05332ed0edd06a6ede213ac0f544e7d7236c08ac (patch)
tree986de5ab45cedd190cf4efb91b724a0d2d4a9645 /source/blender/blenloader
parent63d96b8ca06440ee74bec7636ef7b88f6ec5b676 (diff)
Fix for earlier cache commit.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/writefile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index 3a5b8e14de3..ccd7d5ff9a4 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -614,11 +614,11 @@ static void write_pointcaches(WriteData *wd, ListBase *ptcaches)
for(; pm; pm=pm->next) {
writestruct(wd, DATA, "PTCacheMem", 1, pm);
if(pm->index_array)
- writedata(wd, DATA, sizeof(int) * pm->totpoint, pm->index_array);
+ writedata(wd, DATA, MEM_allocN_len(pm->index_array), pm->index_array);
for(i=0; i<BPHYS_TOT_DATA; i++) {
if(pm->data[i] && pm->data_types & (1<<i))
- writedata(wd, DATA, BKE_ptcache_data_size(i) * pm->totpoint, pm->data[i]);
+ writedata(wd, DATA, MEM_allocN_len(pm->data[i]), pm->data[i]);
}
}
}