Fix #21700: particles do not collide with linked objects.
[blender-staging.git] / source / blender / blenkernel / intern / collision.c
index c85bd2f90b3962a0dc1b0f0236bff0d7b98d3086..ffd504f5945e9e7e0aef7329d23c612b78f2efa6 100644 (file)
@@ -1408,7 +1408,7 @@ ListBase *get_collider_cache(Scene *scene, Object *self, Group *group)
        }
        else {
                for(base = scene->base.first; base; base = base->next)
-                       if(self && (base->lay & self->lay)==0
+                       if(!self || (base->lay & self->lay)
                                add_collider_cache_object(&objs, base->object, self, 0);
        }