NULL check for pointcache. not sure this should be fixed elsewhere, commented this needs further checking.

This commit is contained in:
Campbell Barton 2010-04-29 17:57:17 +00:00
parent 1fc7ea774f
commit 08c3bfdfaf

@ -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]);
}
}