Skip to content

Commit

Permalink
Update asset_tracking.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Frankel <[email protected]>
  • Loading branch information
janhohenheim and benfrankel committed Sep 4, 2024
1 parent fa34a54 commit 7e4cecd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/asset_tracking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ type InsertLoadedResource = fn(&mut World, &UntypedHandle);

#[derive(Resource, Default)]
struct ResourceHandles {
// Not immediately useful for this template, where we wait for all assets anyway, but
// use VecDeque to allow assets to be loaded (or fail to load) in arbitrary order.
// Use a queue for waiting assets so they can be cycled through and moved to
// `finished` one at a time.
waiting: VecDeque<(UntypedHandle, InsertLoadedResource)>,
finished: Vec<UntypedHandle>,
}
Expand Down

0 comments on commit 7e4cecd

Please sign in to comment.