[Bf-blender-cvs] [9f2e154e020] master: Eevee: Fix crash caused by visibility calculation

Clément Foucault noreply at git.blender.org
Thu May 30 13:45:53 CEST 2019


Commit: 9f2e154e020999263b17db5345111eba5fed9a90
Author: Clément Foucault
Date:   Thu May 30 00:34:44 2019 +0200
Branches: master
https://developer.blender.org/rB9f2e154e020999263b17db5345111eba5fed9a90

Eevee: Fix crash caused by visibility calculation

===================================================================

M	source/blender/draw/engines/eevee/eevee_lightprobes.c

===================================================================

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



More information about the Bf-blender-cvs mailing list