mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fixed local_to_scene duplication of typed dictionary.
This commit is contained in:
parent
65eb664352
commit
4841add19a
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue