Skip to content

Commit

Permalink
Clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JMS55 committed Jan 6, 2024
1 parent 2f55e90 commit baee7e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/bevy_pbr/src/meshlet/gpu_scene.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ pub fn extract_meshlet_meshes(
(instance, handle, transform, previous_transform, not_shadow_receiver, _not_shadow_caster),
) in query.iter().enumerate()
{
if asset_server.is_managed(handle.id()) {
if !asset_server.is_loaded_with_dependencies(handle.id()) {
continue;
}
if asset_server.is_managed(handle.id())
&& !asset_server.is_loaded_with_dependencies(handle.id())
{
continue;
}

gpu_scene.queue_meshlet_mesh_upload(instance, handle, &mut assets, instance_index as u32);
Expand Down

0 comments on commit baee7e7

Please sign in to comment.