Eevee: Fix crash caused by visibility calculation

This commit is contained in:
Clément Foucault
2019-05-30 00:34:44 +02:00
parent 596492e639
commit 9f2e154e02

View File

@@ -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;
}