You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
GDScript: Fix missing conversion for default argument values
This commit is contained in:
@@ -872,8 +872,12 @@ void GDScriptByteCodeGenerator::write_assign_false(const Address &p_target) {
|
||||
append(p_target);
|
||||
}
|
||||
|
||||
void GDScriptByteCodeGenerator::write_assign_default_parameter(const Address &p_dst, const Address &p_src) {
|
||||
write_assign(p_dst, p_src);
|
||||
void GDScriptByteCodeGenerator::write_assign_default_parameter(const Address &p_dst, const Address &p_src, bool p_use_conversion) {
|
||||
if (p_use_conversion) {
|
||||
write_assign_with_conversion(p_dst, p_src);
|
||||
} else {
|
||||
write_assign(p_dst, p_src);
|
||||
}
|
||||
function->default_arguments.push_back(opcodes.size());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user