diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-01-17 21:43:41 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-01-17 21:43:41 +0300 |
commit | 7b29956cc546b3e69c4181015d457d2ee47474ff (patch) | |
tree | 67b7a6481f7ba66e8f58e9741585f4f075795df5 /source | |
parent | f417787ee116f25889f853a98319d4e351edb3b5 (diff) |
Fix T67942 EEVEE: Crash when empty is set as camera and motion blur is on
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_motion_blur.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_motion_blur.c b/source/blender/draw/engines/eevee/eevee_motion_blur.c index 670201555bd..fc5af62d45f 100644 --- a/source/blender/draw/engines/eevee/eevee_motion_blur.c +++ b/source/blender/draw/engines/eevee/eevee_motion_blur.c @@ -119,7 +119,7 @@ int EEVEE_motion_blur_init(EEVEE_ViewLayerData *UNUSED(sldata), EEVEE_Data *veda if (scene_eval->eevee.flag & SCE_EEVEE_MOTION_BLUR_ENABLED) { /* Update Motion Blur Matrices */ - if (camera) { + if (camera && (camera->type == OB_CAMERA) && (camera->data != NULL)) { float persmat[4][4]; float ctime = DEG_get_ctime(draw_ctx->depsgraph); float delta = scene_eval->eevee.motion_blur_shutter; |