Fix T67942 EEVEE: Crash when empty is set as camera and motion blur is on
This commit is contained in:
parent
f417787ee1
commit
7b29956cc5
Notes:
blender-bot
2023-02-14 01:28:03 +01:00
Referenced by issue #67942, Eevee - crash when empty is set as camera and motion blur is on
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue