Fix T67942 EEVEE: Crash when empty is set as camera and motion blur is on
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user