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

Validate that Nodes can only be exported from Node-derived classes #841

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

Bromeon
Copy link
Member

@Bromeon Bromeon commented Aug 5, 2024

Closes #654.
Based on #840 changes, and incidentally related to #839.

Done as a runtime check at startup, because alternatives create massive trait complexity. If we decide to extend this check later to user-defined hints (that suggest export), it's anyway no longer possible statically.

@Bromeon Bromeon added bug c: register Register classes, functions and other symbols to GDScript breaking-change Requires SemVer bump labels Aug 5, 2024
@GodotRust
Copy link

API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-841

@Bromeon Bromeon force-pushed the bugfix/export-node-only-in-node branch from 71e9d87 to 38b7ed0 Compare August 5, 2024 16:52
@Bromeon Bromeon enabled auto-merge August 5, 2024 16:53
@Bromeon Bromeon added this pull request to the merge queue Aug 5, 2024
Merged via the queue into master with commit a20bb85 Aug 5, 2024
14 checks passed
@Bromeon Bromeon deleted the bugfix/export-node-only-in-node branch August 5, 2024 17:01
@Bromeon Bromeon added quality-of-life No new functionality, but improves ergonomics/internals and removed bug labels Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change Requires SemVer bump c: register Register classes, functions and other symbols to GDScript quality-of-life No new functionality, but improves ergonomics/internals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dont allow exporting Nodes from Custom Resources (par with gdscript)
2 participants