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
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-11-23 18:41:53 +0300
committerJacques Lucke <jacques@blender.org>2021-11-23 18:41:53 +0300
commita9eb4e6f5905df989eb763749e8adee9e55b897b (patch)
treef475cc297bdb1d47a5c4efae3b30619e24ce8d71
parentdb450c93201f4fd963fa1a7d6bc73cb6646642e7 (diff)
parenta6b7f3211205032b0b35bac489127d38ca6f004e (diff)
Merge branch 'blender-v3.0-release'
-rw-r--r--source/blender/draw/engines/eevee/eevee_motion_blur.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_motion_blur.c b/source/blender/draw/engines/eevee/eevee_motion_blur.c
index 1eff2a3af24..703518a32ec 100644
--- a/source/blender/draw/engines/eevee/eevee_motion_blur.c
+++ b/source/blender/draw/engines/eevee/eevee_motion_blur.c
@@ -29,6 +29,7 @@
#include "BKE_animsys.h"
#include "BKE_camera.h"
+#include "BKE_duplilist.h"
#include "BKE_object.h"
#include "BKE_screen.h"
@@ -318,6 +319,14 @@ void EEVEE_motion_blur_cache_populate(EEVEE_ViewLayerData *UNUSED(sldata),
return;
}
+ const DupliObject *dup = DRW_object_get_dupli(ob);
+ if (dup != NULL && dup->ob->data != dup->ob_data) {
+ /* Geometry instances do not support motion blur correctly yet. The #key used in
+ * #motion_blur_deform_data_get has to take ids of instances (#DupliObject.persistent_id) into
+ * account. Otherwise it can't find matching geometry instances at different points in time. */
+ return;
+ }
+
EEVEE_ObjectMotionData *mb_data = EEVEE_motion_blur_object_data_get(
&effects->motion_blur, ob, false);