mirror of
https://github.com/bevyengine/bevy
synced 2024-12-30 06:53:13 +00:00
e4f501cb4a
# Objective In PR #15812 ImageLoader was moved from bevy_render to bevy_image but a reference to old path was left in a meta file used by `asset_settings` example. This resulted in one of sprites used by this example to not be displayed. Fixes #15932 ## Solution Correct the loader reference in the meta file used by `asset_settings` example (I've found no other meta files referencing this loader). ## Testing I've run `bevy_assets` example. It now displays 3 sprites (as expected) and outputs no errors. ## Migration Guide This PR obviously requires no migration guide as this is just a bug-fix, but I believe that #15812 should mention that meta files needs updating. Proposal: * Asset loader name must be updated in `.meta` files for images. Change: `loader: "bevy_render::texture::image_loader::ImageLoader",` to: `loader: "bevy_image::image_loader::ImageLoader",` It will fix the following error: ``no `AssetLoader` found with the name 'bevy_render::texture::image_loader::ImageLoader``
25 lines
No EOL
808 B
Text
25 lines
No EOL
808 B
Text
(
|
|
meta_format_version: "1.0",
|
|
asset: Load(
|
|
loader: "bevy_image::image_loader::ImageLoader",
|
|
settings: (
|
|
format: FromExtension,
|
|
is_srgb: true,
|
|
sampler: Descriptor (ImageSamplerDescriptor(
|
|
address_mode_u: ClampToEdge,
|
|
address_mode_v: ClampToEdge,
|
|
address_mode_w: ClampToEdge,
|
|
mag_filter: Nearest,
|
|
min_filter: Nearest,
|
|
mipmap_filter: Nearest,
|
|
lod_min_clamp: 0,
|
|
lod_max_clamp: 32.0,
|
|
compare: None,
|
|
anisotropy_clamp: 1,
|
|
border_color: None,
|
|
label: None,
|
|
)),
|
|
asset_usage: RenderAssetUsages("RENDER_WORLD | MAIN_WORLD"),
|
|
),
|
|
),
|
|
) |