1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-26 15:46:23 +00:00

Refactor MethodBind to use variadic templates

Removed make_binders and the old style generated binders.
This commit is contained in:
reduz
2020-10-15 12:29:59 -03:00
committed by Juan Linietsky
parent 5b6a22e275
commit ee06a70ea6
77 changed files with 1263 additions and 1098 deletions

View File

@@ -1343,7 +1343,7 @@ MethodBind *ClassDB::bind_methodfi(uint32_t p_flags, MethodBind *p_bind, const c
defvals.resize(p_defcount);
for (int i = 0; i < p_defcount; i++) {
defvals.write[i] = *p_defs[p_defcount - i - 1];
defvals.write[i] = *p_defs[i];
}
p_bind->set_default_arguments(defvals);