You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Merge pull request #70987 from vonagam/fix-parameter-conversion-assign
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