[Bf-blender-cvs] [6a1a894df1c] eevee-motionblur-object: EEVEE: Motion Blur: Support Duplis and assume they are always moving
Clément Foucault
noreply at git.blender.org
Fri Jun 12 15:17:33 CEST 2020
Commit: 6a1a894df1ca10cdca2fed1b5f4a6a789c049dc6
Author: Clément Foucault
Date: Fri Jun 12 14:04:17 2020 +0200
Branches: eevee-motionblur-object
https://developer.blender.org/rB6a1a894df1ca10cdca2fed1b5f4a6a789c049dc6
EEVEE: Motion Blur: Support Duplis and assume they are always moving
===================================================================
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 4cdcb6c0842..e5c398ce87b 100644
--- a/source/blender/draw/engines/eevee/eevee_motion_blur.c
+++ b/source/blender/draw/engines/eevee/eevee_motion_blur.c
@@ -324,12 +324,13 @@ void EEVEE_motion_blur_cache_populate(EEVEE_ViewLayerData *UNUSED(sldata),
EEVEE_EffectsInfo *effects = stl->effects;
DRWShadingGroup *grp = NULL;
- if (!DRW_state_is_scene_render() || psl->velocity_object == NULL ||
- (ob->base_flag & BASE_FROM_DUPLI)) {
+ if (!DRW_state_is_scene_render() || psl->velocity_object == NULL) {
return;
}
- const bool object_moves = BKE_object_moves_in_time(ob, true);
+ /* For now we assume dupli objects are moving. */
+ const bool object_moves = (ob->base_flag & BASE_FROM_DUPLI) ||
+ BKE_object_moves_in_time(ob, true);
const bool is_deform = BKE_object_is_deform_modified(DRW_context_state_get()->scene, ob);
if (!(object_moves || is_deform)) {
More information about the Bf-blender-cvs
mailing list