Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-09-17 12:31:07 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-09-17 13:20:51 +0300
commit5bf32f3337b7100547545a66273a5e4b9a6f6972 (patch)
treedd433aa6cec312dca395dfc76803af0daf9960ff /source
parentdc1e03b4a27351a22374607d40ca990612aa6fc2 (diff)
Fix T56801: Enabling smoke crashes Blender.
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/engines/eevee/eevee_volumes.c5
1 files changed, 5 insertions, 0 deletions
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);