godotengine / godot-cpp

C++ bindings for the Godot script API
MIT License
1.7k stars 528 forks source link

Fix incorrect utility call signature #1422

Closed AThousandShips closed 6 months ago

AThousandShips commented 6 months ago

The alternative method would be to change the bindings from: https://github.com/godotengine/godot-cpp/blob/a62f633cebee4b36356dc903d00670733cd28fb1/binding_generator.py#L2054

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:

dsnopek commented 6 months ago

Ack, there's a conflict now from merging PR https://github.com/godotengine/godot-cpp/pull/1409. Can you please rebase it? Thanks!

dsnopek commented 6 months ago

Thanks!

AThousandShips commented 6 months ago

Thank you!

dsnopek commented 5 months ago

Cherry-picked for 4.1 in PR https://github.com/godotengine/godot-cpp/pull/1411

dsnopek commented 5 months ago

Cherry-picked for 4.2 in PR https://github.com/godotengine/godot-cpp/pull/1410