Skip to content

Commit

Permalink
Revert has_motion_vectors name change
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Swain <[email protected]>
  • Loading branch information
nicopap and superdump committed Oct 9, 2023
1 parent cf41587 commit e6a83eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_pbr/src/render/mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,7 @@ impl<P: PhaseItem, const I: usize, const PREPASS: bool> RenderCommand<P>
#[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,
Expand All @@ -1243,7 +1243,7 @@ impl<P: PhaseItem, const I: usize, const PREPASS: bool> RenderCommand<P>

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 {
Expand Down

0 comments on commit e6a83eb

Please sign in to comment.