Skip to content

Commit

Permalink
Merge pull request #212 from andrewhickman/fix-texture-layout
Browse files Browse the repository at this point in the history
Fix derive macro with texture atlas layouts
  • Loading branch information
NiklasEi committed May 16, 2024
2 parents 50b6fd1 + 6007c86 commit 160d5f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bevy_asset_loader/src/loading_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ pub(crate) enum InternalLoadingState<S: States> {
LoadingDynamicAssetCollections,
/// Load the actual asset collections and check their status every frame.
LoadingAssets,
/// All collections are loaded and inserted. Time to e.g. run custom [insert_resource](bevy_asset_loader::AssetLoader::insert_resource).
/// All collections are loaded and inserted. Time to e.g. run custom [`insert_resource`](bevy_asset_loader::AssetLoader::insert_resource).
Finalize,
/// A 'parking' state in case no next state is defined
Done(PhantomData<S>),
Expand Down
2 changes: 1 addition & 1 deletion bevy_asset_loader/tests/ui/no_default.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error[E0277]: the trait bound `NoDefault: std::default::Default` is not satisfied
error[E0277]: the trait bound `NoDefault: FromWorld` is not satisfied
--> tests/ui/no_default.rs:8:5
|
8 | no_default: NoDefault,
Expand Down
2 changes: 1 addition & 1 deletion bevy_asset_loader_derive/src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ impl AssetField {
)
}
AssetField::TextureAtlasLayout(TextureAtlasLayoutAssetField { .. }) => {
quote!()
quote!(#token_stream)
}
AssetField::StandardMaterial(BasicAssetField { asset_path, .. })
| AssetField::Image(ImageAssetField { asset_path, .. }) => {
Expand Down

0 comments on commit 160d5f7

Please sign in to comment.