diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-04-08 09:39:03 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-08 09:39:03 -0300 |
commit | 4ee3f3251dc55ae49c873bc1895cecf75bc0bf8a (patch) | |
tree | ad5442ba88596748b67ec6834a50b61543c8d916 /core/resource.cpp | |
parent | 8a5fb669ae3590fa1aa3f1fb90d01c3dca843c94 (diff) | |
parent | 9f6c0c6eaef754f2049ee536c5b38bfdc65fbd08 (diff) |
Merge pull request #17382 from bojidar-bg/13971-path-array-unsaved
Duplicate Arrays and Dictionaries when instancing scene in editor
Diffstat (limited to 'core/resource.cpp')
-rw-r--r-- | core/resource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/resource.cpp b/core/resource.cpp index 2eeed50d9d..179333aa14 100644 --- a/core/resource.cpp +++ b/core/resource.cpp @@ -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; |