diff options
author | Janne Karhu <jhkarh@gmail.com> | 2009-08-29 21:25:26 +0400 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2009-08-29 21:25:26 +0400 |
commit | 47190b2009f528df4050ac8ac0216990d5e12a53 (patch) | |
tree | 8b6e1436c3d02a48e2f51d4541d83cd6d52103a4 /source/blender/editors/physics | |
parent | afee963155a2776066d377ed590e755217948d0f (diff) |
Missing null check in particle edit code caused a crash when using search boxes.
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r-- | source/blender/editors/physics/editparticle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/physics/editparticle.c b/source/blender/editors/physics/editparticle.c index c0b600edf36..220928cb79c 100644 --- a/source/blender/editors/physics/editparticle.c +++ b/source/blender/editors/physics/editparticle.c @@ -199,7 +199,7 @@ PTCacheEdit *PE_get_current(Scene *scene, Object *ob) BKE_ptcache_ids_from_object(&pidlist, ob); /* in the case of only one editable thing, set pset->edittype accordingly */ - if(pidlist.first == pidlist.last) { + if(pidlist.first && pidlist.first == pidlist.last) { pid = pidlist.first; switch(pid->type) { case PTCACHE_TYPE_PARTICLES: |