Skip to content

Sync Ref to godotengine master.#1939

Merged
dsnopek merged 1 commit intogodotengine:masterfrom
Ivorforce:sync-ref
Mar 3, 2026
Merged

Sync Ref to godotengine master.#1939
dsnopek merged 1 commit intogodotengine:masterfrom
Ivorforce:sync-ref

Conversation

@Ivorforce
Copy link
Member

@Ivorforce Ivorforce commented Feb 28, 2026

I deleted a few comments that aren't relelvant in godot-cpp, the rest is godotengine/master verbatim.

To make it work, I needed to flip the Ref <-> RefCounted dependency, such that Ref knows RefCounted but not vice versa. This matches the setup from upstream Godot.

Should fix #1938

@Ivorforce Ivorforce added this to the 10.x milestone Feb 28, 2026
@Ivorforce Ivorforce requested a review from a team as a code owner February 28, 2026 16:24
@Ivorforce Ivorforce added bug This has been identified as a bug enhancement This is an enhancement on the current functionality labels Feb 28, 2026
@Ivorforce Ivorforce force-pushed the sync-ref branch 2 times, most recently from 8a733d8 to 391e7e5 Compare February 28, 2026 17:36
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.

Thanks!

I diff'd the version in godot-cpp against the one in Godot, and it looks good to me :-)

@dsnopek dsnopek merged commit 252e277 into godotengine:master Mar 3, 2026
19 checks passed
@Ivorforce Ivorforce deleted the sync-ref branch March 3, 2026 21:17
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 enhancement This is an enhancement on the current functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

T of Ref<T> cannot be forward declared

2 participants