Skip to content

Implement static methods for engine + builtin classes #115

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

Merged
merged 2 commits into from
Feb 5, 2023

Conversation

Bromeon
Copy link
Member

@Bromeon Bromeon commented Feb 5, 2023

Also fixes a memory leak when RefCounted instances are returned from engine methods.

Closes #43.

The refcount was accidentally incremented on the Rust call-site, even though Godot already does that.
Added regression test for this case.
@Bromeon Bromeon added feature Adds functionality to the library c: engine Godot classes (nodes, resources, ...) labels Feb 5, 2023
@Bromeon
Copy link
Member Author

Bromeon commented Feb 5, 2023

bors r+

bors bot added a commit that referenced this pull request Feb 5, 2023
115: Implement static methods for class + builtin methods r=Bromeon a=Bromeon

Also fixes a memory leak when `RefCounted` instances are returned from engine methods.

Closes #43.


Co-authored-by: Jan Haller <[email protected]>
@Bromeon Bromeon changed the title Implement static methods for class + builtin methods Implement static methods for engine + builtin classes Feb 5, 2023
@godot-rust godot-rust deleted a comment from bors bot Feb 5, 2023
@godot-rust godot-rust deleted a comment from bors bot Feb 5, 2023
@bors
Copy link
Contributor

bors bot commented Feb 5, 2023

Build succeeded:

@bors bors bot merged commit eb5d43b into master Feb 5, 2023
@bors bors bot deleted the feature/static-methods branch February 5, 2023 15:10
ttencate pushed a commit to ttencate/gdext that referenced this pull request Feb 5, 2023
115: Implement static methods for engine + builtin classes r=Bromeon a=Bromeon

Also fixes a memory leak when `RefCounted` instances are returned from engine methods.

Closes godot-rust#43.

Co-authored-by: Jan Haller <[email protected]>
ttencate pushed a commit to ttencate/gdext that referenced this pull request Feb 5, 2023
115: Implement static methods for engine + builtin classes r=Bromeon a=Bromeon

Also fixes a memory leak when `RefCounted` instances are returned from engine methods.

Closes godot-rust#43.

Co-authored-by: Jan Haller <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: engine Godot classes (nodes, resources, ...) feature Adds functionality to the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Static methods in Godot API
1 participant