You've already forked godot
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user