[Bf-blender-cvs] [5bf32f3337b] blender2.8: Fix T56801: Enabling smoke crashes Blender.
Clément Foucault
noreply at git.blender.org
Mon Sep 17 12:20:59 CEST 2018
Commit: 5bf32f3337b7100547545a66273a5e4b9a6f6972
Author: Clément Foucault
Date: Mon Sep 17 11:31:07 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB5bf32f3337b7100547545a66273a5e4b9a6f6972
Fix T56801: Enabling smoke crashes Blender.
===================================================================
M source/blender/draw/engines/eevee/eevee_volumes.c
===================================================================
diff --git a/source/blender/draw/engines/eevee/eevee_volumes.c b/source/blender/draw/engines/eevee/eevee_volumes.c
index b729c53628f..236c845d999 100644
--- a/source/blender/draw/engines/eevee/eevee_volumes.c
+++ b/source/blender/draw/engines/eevee/eevee_volumes.c
@@ -502,6 +502,11 @@ void EEVEE_volumes_cache_object_add(EEVEE_ViewLayerData *sldata, EEVEE_Data *ved
{
SmokeModifierData *smd = (SmokeModifierData *)md;
SmokeDomainSettings *sds = smd->domain;
+
+ if (sds == NULL) {
+ return;
+ }
+
/* Don't show smoke before simulation starts, this could be made an option in the future. */
const bool show_smoke = ((int)DEG_get_ctime(draw_ctx->depsgraph) >= sds->point_cache[0]->startframe);
More information about the Bf-blender-cvs
mailing list