Skip to content

Conversation

@Yarwin
Copy link
Contributor

@Yarwin Yarwin commented Nov 21, 2025

Closes: #1404 (comment)

Forwards instance creation from godot-rust through Godot – making sure that Godot-specific logic (creating placeholders and whatnot) is being run & preserved.

I'm marking it as a breaking change – API is the same (at least the exposed one) but it is breaking change in behavior which must be properly announced.

WIP – I want to give it solid beating after merging #1399 (+ Godot before 4.4 is not properly covered I think).

@Yarwin Yarwin added bug c: core Core components breaking-change Requires SemVer bump labels Nov 21, 2025
@Yarwin Yarwin marked this pull request as draft November 21, 2025 11:45
@GodotRust
Copy link

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

@Bromeon Bromeon added this to the 0.5 milestone Nov 27, 2025
@Yarwin Yarwin force-pushed the bugfix/forward-instance-creation-through-class-db branch 3 times, most recently from 1b732f9 to 3b0f1b7 Compare December 4, 2025 10:57
----

- Forward object creation through ClassDB to handle placeholder instances logic.
- Remove blanket implementation of `__godot_default` – requiring repeatedly implementing `__godot_default()` for all user classes.
@Yarwin Yarwin force-pushed the bugfix/forward-instance-creation-through-class-db branch from 3b0f1b7 to a4a9bf6 Compare December 4, 2025 11:16
@Yarwin Yarwin added the status: upstream Depending on upstream fix (typically Godot) label Dec 5, 2025
@Yarwin
Copy link
Contributor Author

Yarwin commented Dec 12, 2025

I'm temporarily closing this PR unless we resolve how we should treat creation of the placeholders from an extension side. Forwarding creation through ClassDB – as this PR does – does not change current behavior at all (and makes code much more complicated).

See: #1404 (comment)

@Yarwin Yarwin closed this Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change Requires SemVer bump bug c: core Core components status: upstream Depending on upstream fix (typically Godot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gd::default_instance bypasses placeholder instances

3 participants