diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-04-29 21:57:17 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-04-29 21:57:17 +0400 |
commit | 08c3bfdfaf725e3ed59923d82042fc4c553d982e (patch) | |
tree | 1eecf948518fae07ca305cf9ede19612db8a907f /source/blender/blenkernel/intern/pointcache.c | |
parent | 1fc7ea774f628c61af633415fefd6c5bd7058c87 (diff) |
NULL check for pointcache. not sure this should be fixed elsewhere, commented this needs further checking.
Diffstat (limited to 'source/blender/blenkernel/intern/pointcache.c')
-rw-r--r-- | source/blender/blenkernel/intern/pointcache.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/pointcache.c b/source/blender/blenkernel/intern/pointcache.c index e14c46fd82a..3d02f175174 100644 --- a/source/blender/blenkernel/intern/pointcache.c +++ b/source/blender/blenkernel/intern/pointcache.c @@ -1379,7 +1379,9 @@ static void ptcache_copy_data(void *from[], void *to[]) { int i; for(i=0; i<BPHYS_TOT_DATA; i++) { - if(from[i]) + /* note, durian file 03.4b_comp crashes if to[i] is not tested + * its NULL, not sure if this should be fixed elsewhere but for now its needed */ + if(from[i] && to[i]) memcpy(to[i], from[i], ptcache_data_size[i]); } } |