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>2011-01-19 12:33:09 +0300
committerJanne Karhu <jhkarh@gmail.com>2011-01-19 12:33:09 +0300
commitd177212f80952cd3a51a1aa707bfba0af4d5c23c (patch)
tree3701064043bc86563a800c37cd6c11cdc819f75c /source/blender/editors/physics/particle_edit.c
parent161cbed9b58408500e3e9d2acc6ea8db9ade4d4a (diff)
Fix for [#25705] Crashing doing Bake in Partile System in Particle Mode
* Missing null check.
Diffstat (limited to 'source/blender/editors/physics/particle_edit.c')
-rw-r--r--source/blender/editors/physics/particle_edit.c3
1 files changed, 3 insertions, 0 deletions
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;