Fix for [#25705] Crashing doing Bake in Partile System in Particle Mode

* Missing null check.
This commit is contained in:
2011-01-19 09:33:09 +00:00
parent 161cbed9b5
commit d177212f80

View File

@@ -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;