Eevee: Fix crash when using lamps in dupli groups.

This commit is contained in:
Clément Foucault 2017-07-19 18:15:27 +02:00
parent 2382f979e2
commit 02e318e8b9
1 changed files with 12 additions and 2 deletions

View File

@ -108,10 +108,20 @@ static void EEVEE_cache_populate(void *vedata, Object *ob)
}
}
else if (ob->type == OB_LIGHTPROBE) {
EEVEE_lightprobes_cache_add(sldata, ob);
if ((ob->base_flag & BASE_FROMDUPLI) != 0) {
/* TODO: Special case for dupli objects because we cannot save the object pointer. */
}
else {
EEVEE_lightprobes_cache_add(sldata, ob);
}
}
else if (ob->type == OB_LAMP) {
EEVEE_lights_cache_add(sldata, ob);
if ((ob->base_flag & BASE_FROMDUPLI) != 0) {
/* TODO: Special case for dupli objects because we cannot save the object pointer. */
}
else {
EEVEE_lights_cache_add(sldata, ob);
}
}
}