Skip to content

Conversation

@janos-ijgyarto
Copy link
Contributor

The codegen for the GDVIRTUAL macros was missing the namespace and enum prefix for the method flags. This meant that any class declaration that tried to use a GDVIRTUAL macro would either have to be in the godot namespace, or would have to use using namespace godot, neither of which is ideal.

This change simply adds the prefixes, which means the above workarounds will no longer be necessary, allowing developers to use namespaces as they see fit in their custom Godot objects.

@janos-ijgyarto janos-ijgyarto requested a review from a team as a code owner October 9, 2025 22:21
Copy link
Collaborator

@dsnopek dsnopek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

@dsnopek dsnopek added bug This has been identified as a bug cherrypick:4.4 cherrypick:4.5 labels Nov 29, 2025
@dsnopek dsnopek added this to the 4.x milestone Nov 29, 2025
@dsnopek dsnopek merged commit 4ae2669 into godotengine:master Nov 30, 2025
16 checks passed
@dsnopek
Copy link
Collaborator

dsnopek commented Nov 30, 2025

Cherry-picked for 4.4 in PR #1890

@dsnopek
Copy link
Collaborator

dsnopek commented Nov 30, 2025

Cherry-picked for 4.5 in PR #1891

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

Labels

bug This has been identified as a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants