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

fix: unit enum variants other than Option::None being converted into ScriptValue::Unit #360

Merged
merged 1 commit into from
Mar 10, 2025

Conversation

makspll
Copy link
Owner

@makspll makspll commented Mar 10, 2025

Summary

Currently reflecting into an enum with a unit variant value, will create a ScriptValue::Unit on the script side, i.e. nil for lua.
This is not great because it means you lose information about the variant.

This PR fixes the bug causing this.

@makspll makspll merged commit 996cfba into main Mar 10, 2025
16 checks passed
@makspll makspll deleted the fix/unit-variant-interpreted-as-nil branch March 10, 2025 13:40
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