1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fixed local_to_scene duplication of typed dictionary.

This commit is contained in:
Dubhghlas McLaughlin
2025-08-06 16:43:42 -05:00
parent 65eb664352
commit 4841add19a

View File

@@ -330,7 +330,7 @@ Variant Resource::_duplicate_recursive(const Variant &p_variant, const Duplicate
const Dictionary &src = p_variant;
Dictionary dst;
if (src.is_typed()) {
dst.set_typed(src.get_key_type(), src.get_value_type());
dst.set_typed(src.get_typed_key_builtin(), src.get_typed_key_class_name(), src.get_typed_key_script(), src.get_typed_value_builtin(), src.get_typed_value_class_name(), src.get_typed_value_script());
}
for (const Variant &k : src.get_key_list()) {
const Variant &v = src[k];