Skip to content

Fix incorrect utility call signature#1422

Merged
dsnopek merged 1 commit into
godotengine:masterfrom
AThousandShips:utility_fix
Apr 3, 2024
Merged

Fix incorrect utility call signature#1422
dsnopek merged 1 commit into
godotengine:masterfrom
AThousandShips:utility_fix

Conversation

@AThousandShips

@AThousandShips AThousandShips commented Mar 27, 2024

Copy link
Copy Markdown
Member

The alternative method would be to change the bindings from:

function_call += "internal::_call_utility_ret_obj(_gde_function"

To:

function_call += "internal::_call_utility_ret_obj(_gde_function, nullptr"

But I don't see any reason to pass this argument here, and this is strictly internal, so I think this is the simplest and cleanest solution, I have tested both methods and they both work correctly

See:

@AThousandShips AThousandShips added bug This has been identified as a bug topic:gdextension This relates to the new Godot 4 extension implementation labels Mar 27, 2024
@AThousandShips AThousandShips added this to the 4.3 milestone Mar 27, 2024
@AThousandShips
AThousandShips marked this pull request as ready for review March 27, 2024 12:22
@AThousandShips
AThousandShips requested a review from a team as a code owner March 27, 2024 12:22

@dsnopek dsnopek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks! Looks good to me :-)

@dsnopek

dsnopek commented Apr 2, 2024

Copy link
Copy Markdown
Collaborator

Ack, there's a conflict now from merging PR #1409. Can you please rebase it? Thanks!

@dsnopek
dsnopek merged commit b021245 into godotengine:master Apr 3, 2024
@dsnopek

dsnopek commented Apr 3, 2024

Copy link
Copy Markdown
Collaborator

Thanks!

@AThousandShips
AThousandShips deleted the utility_fix branch April 3, 2024 14:07
@AThousandShips

Copy link
Copy Markdown
Member Author

Thank you!

@dsnopek

dsnopek commented Apr 8, 2024

Copy link
Copy Markdown
Collaborator

Cherry-picked for 4.1 in PR #1411

@dsnopek

dsnopek commented Apr 8, 2024

Copy link
Copy Markdown
Collaborator

Cherry-picked for 4.2 in PR #1410

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 topic:gdextension This relates to the new Godot 4 extension implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants