You've already forked godot
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user