You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may have to do with the fact that MethodBind.hint_flagsis never set (neither to vararg static, nor to p_flags) - but then again, I think it's supposed to be determined automatically? I'm not sure, I don't know the source code well enough to provide a quick fix.
I don't think this issue occurs in upstream godot, but I haven't extensively checked.
Looks like this is caused by a fairly silly bug in Godot. I just posted PR godotengine/godot#99403 which fixes this in my testing. Please let me know if it works for you!
Godot version
4.3
godot-cpp version
4.3 (56571dc)
System information
macOS
Issue description
When calling a varargs method without arguments, you get a failure:
Varargs calls are not supposed to be validated, so it's probably wrong that it tries to validated-call it in the first place: https://github.com/godotengine/godot/blob/5efd124ca10bf46df62fa2441d80589777e54a5a/modules/gdscript/gdscript_compiler.cpp#L237
This may have to do with the fact that
MethodBind.hint_flags
is never set (neither to vararg static, nor top_flags
) - but then again, I think it's supposed to be determined automatically? I'm not sure, I don't know the source code well enough to provide a quick fix.I don't think this issue occurs in upstream godot, but I haven't extensively checked.
Steps to reproduce
Minimal reproduction project
(or just add as remote / checkout branch)
https://github.com/Ivorforce/godot-cpp/tree/no-arg-varargs
The text was updated successfully, but these errors were encountered: