Fix T93297: incorrect eevee motion blur with geometry instances
This disables motion blur for geometry instances in eevee, which did not work correctly anyway. See code comment for more details. Differential Revision: https://developer.blender.org/D13334
This commit is contained in:
parent
70424195a8
commit
a6b7f32112
|
@ -29,6 +29,7 @@
|
||||||
|
|
||||||
#include "BKE_animsys.h"
|
#include "BKE_animsys.h"
|
||||||
#include "BKE_camera.h"
|
#include "BKE_camera.h"
|
||||||
|
#include "BKE_duplilist.h"
|
||||||
#include "BKE_object.h"
|
#include "BKE_object.h"
|
||||||
#include "BKE_screen.h"
|
#include "BKE_screen.h"
|
||||||
|
|
||||||
|
@ -318,6 +319,14 @@ void EEVEE_motion_blur_cache_populate(EEVEE_ViewLayerData *UNUSED(sldata),
|
||||||
return;
|
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(
|
EEVEE_ObjectMotionData *mb_data = EEVEE_motion_blur_object_data_get(
|
||||||
&effects->motion_blur, ob, false);
|
&effects->motion_blur, ob, false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue