Skip to content

Conversation

@TitanNano
Copy link
Contributor

In __are_oneditor_fields_initalized that is generated by the GodotClass derive macro, we use ::godot::class::Engine::singleton(). Since the introduction of the Singleton trait, we have to now explicitly mention the trait. Otherwise, users might run into compiler errors if they don't have the trait in scope:

no function or associated item named singleton found for struct godot::classes::Engine in the current scope
items from traits can only be used if the trait is in scope.

@TitanNano TitanNano added the bug label Nov 7, 2025
@TitanNano TitanNano added this to the 0.4.x milestone Nov 7, 2025
@TitanNano TitanNano force-pushed the jovan/on_editor_singleton_trait branch from a59fb3b to 709de87 Compare November 7, 2025 00:17
@GodotRust
Copy link

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

@TitanNano TitanNano added this pull request to the merge queue Nov 7, 2025
Merged via the queue into godot-rust:master with commit 315ba46 Nov 7, 2025
20 checks passed
@TitanNano TitanNano deleted the jovan/on_editor_singleton_trait branch November 7, 2025 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants