AssetServer:: load_with_settings ignores the settings if file was already loaded with default settings
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 171
Description
Example from this PR: https://github.com/bevyengine/bevy/pull/11109/files:
```rust
let image = asset_server.load("textures/house_tree_river.png");
let image_repeat = asset_server.load_with_settings(
"textures/house_tree_river_copy.png",
...
);
```
if we use the same file name, second image will ignore the settings (`ImageAddressMode` to be specific). Here we are using a workaround: providing a different file name.
Contributor guide
Research direction
Start at AssetServer::load_with_settings and compare it with the preceding asset_server.load call shown in the issue and PR #11109. Reproduce loading the same file first with default settings and then with ImageAddressMode settings; done means the second load honors its settings without requiring a different filename.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100