Browse Source

Fixed `local_to_scene` duplication of typed dictionary.

Dubhghlas McLaughlin 2 weeks ago
parent
commit
4841add19a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/io/resource.cpp

+ 1 - 1
core/io/resource.cpp

@@ -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];