Commit: 693b88f152c37ac256b081804adbd432313064c1
Author: Clément Foucault
Date: Tue Apr 14 15:33:07 2020 +0200
Branches: eevee-motionblur-object
https://developer.blender.org/rB693b88f152c37ac256b081804adbd432313064c1
EEVEE: Motion Blur: Fix crash when motion blur is not enabled
===================================================================
M source/blender/draw/engines/eevee/eevee_motion_blur.c
===================================================================
diff --git a/source/blender/draw/engines/eevee/eevee_motion_blur.c
b/source/blender/draw/engines/eevee/eevee_motion_blur.c
index 6b46aa9c54a..63924605649 100644
--- a/source/blender/draw/engines/eevee/eevee_motion_blur.c
+++ b/source/blender/draw/engines/eevee/eevee_motion_blur.c
@@ -273,6 +273,11 @@ void EEVEE_motion_blur_cache_finish(EEVEE_Data *vedata)
EEVEE_StorageList *stl = vedata->stl;
EEVEE_EffectsInfo *effects = stl->effects;
GHashIterator ghi;
+
+ if ((effects->enabled_effects & EFFECT_MOTION_BLUR) == 0) {
+ return;
+ }
+
for (BLI_ghashIterator_init(&ghi, effects->motion_blur.geom);
BLI_ghashIterator_done(&ghi) == false;
BLI_ghashIterator_step(&ghi)) {
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs