From d177212f80952cd3a51a1aa707bfba0af4d5c23c Mon Sep 17 00:00:00 2001 From: Janne Karhu Date: Wed, 19 Jan 2011 09:33:09 +0000 Subject: Fix for [#25705] Crashing doing Bake in Partile System in Particle Mode * Missing null check. --- source/blender/editors/physics/particle_edit.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/editors/physics/particle_edit.c') diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index 0017fd0130a..93e652023cf 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -4014,6 +4014,9 @@ static void PE_create_particle_edit(Scene *scene, Object *ob, PointCache *cache, if(cache && cache->flag & PTCACHE_DISK_CACHE) return; + if(psys == NULL && cache->mem_cache.first == NULL) + return; + if(!edit) { totpoint = psys ? psys->totpart : ((PTCacheMem*)cache->mem_cache.first)->totpoint; -- cgit v1.2.3