Skip to content

Commit 4841add

Browse files
committed
Fixed local_to_scene duplication of typed dictionary.
1 parent 65eb664 commit 4841add

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/io/resource.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ Variant Resource::_duplicate_recursive(const Variant &p_variant, const Duplicate
330330
const Dictionary &src = p_variant;
331331
Dictionary dst;
332332
if (src.is_typed()) {
333-
dst.set_typed(src.get_key_type(), src.get_value_type());
333+
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());
334334
}
335335
for (const Variant &k : src.get_key_list()) {
336336
const Variant &v = src[k];

0 commit comments

Comments
 (0)