diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-05-30 01:34:44 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-05-30 14:43:34 +0300 |
commit | 9f2e154e020999263b17db5345111eba5fed9a90 (patch) | |
tree | 0343e487dfeb0ba2ad8477d49abca2446b09f739 | |
parent | 596492e639f07b6a0a3f705a0f944dc57f94b7e4 (diff) |
Eevee: Fix crash caused by visibility calculation
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_lightprobes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_lightprobes.c b/source/blender/draw/engines/eevee/eevee_lightprobes.c index bbad169f363..01f8ffea7f8 100644 --- a/source/blender/draw/engines/eevee/eevee_lightprobes.c +++ b/source/blender/draw/engines/eevee/eevee_lightprobes.c @@ -66,7 +66,7 @@ bool EEVEE_lightprobes_obj_visibility_cb(bool vis_in, void *user_data) EEVEE_ObjectEngineData *oed = (EEVEE_ObjectEngineData *)user_data; /* test disabled if group is NULL */ - if (oed->test_data->collection == NULL) { + if (oed == NULL || oed->test_data->collection == NULL) { return vis_in; } |