You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-05 17:15:09 +00:00
Duplicate Arrays and Dictionaries when instancing scene in editor
Also, add deep (=false) parameter to Array.duplicate and Dictionary.duplicate Fixes #13971
This commit is contained in:
@@ -226,7 +226,7 @@ Ref<Resource> Resource::duplicate(bool p_subresources) const {
|
||||
|
||||
if (!(E->get().usage & PROPERTY_USAGE_STORAGE))
|
||||
continue;
|
||||
Variant p = get(E->get().name);
|
||||
Variant p = get(E->get().name).duplicate(true);
|
||||
if (p.get_type() == Variant::OBJECT && p_subresources) {
|
||||
|
||||
RES sr = p;
|
||||
|
||||
Reference in New Issue
Block a user