bevyengine / bevyengine/bevy

Dropping a handle from `Assets::get_strong_handle` has different behaviour to one from `AssetServer::load`.

Open
#20,651 3 comments 0 reactions 0 assignees View on GitHub
A-Assets C-Bug D-Modest S-Needs-Design
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version and features

- b6922f98d1ec619dee5da084f54c2bcac80729c6

## What you did

- Load an asset using `AssetServer::load`.
- Wait for it to load.
- Use `AssetServer::get_strong_handle` to get a completely separate handle to the asset.
- Drop the handle you got from the `AssetServer`.
- Reload the asset using `AssetServer::load`.

## What went wrong

- The `AssetServer` reloads the asset, even the asset was never dropped.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.