From e6a83ebaa299401bddcd8315bfe640118225005f Mon Sep 17 00:00:00 2001 From: Nicola Papale Date: Mon, 9 Oct 2023 07:13:37 +0200 Subject: [PATCH] Revert has_motion_vectors name change Co-authored-by: Robert Swain --- crates/bevy_pbr/src/render/mesh.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_pbr/src/render/mesh.rs b/crates/bevy_pbr/src/render/mesh.rs index 7853cef220b887..58e90c4d456d17 100644 --- a/crates/bevy_pbr/src/render/mesh.rs +++ b/crates/bevy_pbr/src/render/mesh.rs @@ -1219,7 +1219,7 @@ impl RenderCommand

#[inline] fn render<'w>( item: &P, - is_motion_vectors: bool, + has_motion_vectors: bool, _item_query: (), (bind_groups, mesh_instances, skin_indices, morph_indices): SystemParamItem< 'w, @@ -1243,7 +1243,7 @@ impl RenderCommand

let is_skinned = skin_index.is_some(); let is_morphed = morph_index.is_some(); - let is_motion_vectors = PREPASS && is_motion_vectors; + let is_motion_vectors = PREPASS && has_motion_vectors; let morph_id = is_morphed.then_some(mesh.mesh_asset_id); let Some(bind_group) = bind_groups.get(morph_id, is_skinned, is_motion_vectors) else {