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>2009-08-29 21:25:26 +0400
committerJanne Karhu <jhkarh@gmail.com>2009-08-29 21:25:26 +0400
commit47190b2009f528df4050ac8ac0216990d5e12a53 (patch)
tree8b6e1436c3d02a48e2f51d4541d83cd6d52103a4 /source/blender/editors/physics
parentafee963155a2776066d377ed590e755217948d0f (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.c2
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: