Skip to content

Don't remove Handle tracking upon soft-removal of an asset.#24251

Open
larsraph wants to merge 1 commit into
bevyengine:mainfrom
larsraph:asset-remove-fix
Open

Don't remove Handle tracking upon soft-removal of an asset.#24251
larsraph wants to merge 1 commit into
bevyengine:mainfrom
larsraph:asset-remove-fix

Conversation

@larsraph
Copy link
Copy Markdown

Error

I believe the intended behavior of remove and remove_untracked is for the backing Id to still be valid until all handles are dropped however the remove_untracked (called by remove) drops the Handle refcount (called duplicate_handles) for that id.

This is illogically sound because we're still using the refcount to track the handles. But it technically has the same result IF we only have a single live handle (surely like 90% of use cases) because the refcount only gets checked on a dropped Handle.


@andriyDev - If you wanted to look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant