You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Objective
- Creating an asset source without a reader results in entirely skipping
the asset source.
## Solution
- Make the `AssetSourceBuilder` take a reader builder fn in a `new`
method.
- Remove `AssetSource::build` - users should just call the builder
directly.
## Testing
- Tests still pass.
---------
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: Greeble <166992735+greeble-dev@users.noreply.github.com>
Copy file name to clipboardExpand all lines: crates/bevy_asset/src/io/source.rs
+26-18Lines changed: 26 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -116,10 +116,9 @@ impl<'a> PartialEq for AssetSourceId<'a> {
116
116
117
117
/// Metadata about an "asset source", such as how to construct the [`AssetReader`](crate::io::AssetReader) and [`AssetWriter`](crate::io::AssetWriter) for the source,
118
118
/// and whether or not the source is processed.
119
-
#[derive(Default)]
120
119
pubstructAssetSourceBuilder{
121
120
/// The [`ErasedAssetReader`] to use on the unprocessed asset.
0 commit comments