Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly handle ProtoAsset::HandleId #38

Merged
merged 1 commit into from
May 3, 2023
Merged

Conversation

MrGVSV
Copy link
Owner

@MrGVSV MrGVSV commented May 1, 2023

#33 added ProtoAsset::HandleId. The main purpose of this was to allow for default ProtoAsset values using Handle<T>::default().

However, the derive macro failed to account for this properly, resulting in a panic when attempting to spawn the prototype.

The behavior of preloading a ProtoAsset::HandleId is correct— we should not be able to preload anything just by its HandleId. This PR just makes the error message a little clearer.

@MrGVSV MrGVSV merged commit b5e643b into main May 3, 2023
@MrGVSV MrGVSV deleted the fix-expected-asset-path branch May 3, 2023 17:14
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