diff options
| author | Juan Linietsky | 2018-04-08 09:39:03 -0300 |
|---|---|---|
| committer | GitHub | 2018-04-08 09:39:03 -0300 |
| commit | 4ee3f3251dc55ae49c873bc1895cecf75bc0bf8a (patch) | |
| tree | ad5442ba88596748b67ec6834a50b61543c8d916 /scene/resources | |
| parent | 8a5fb669ae3590fa1aa3f1fb90d01c3dca843c94 (diff) | |
| parent | 9f6c0c6eaef754f2049ee536c5b38bfdc65fbd08 (diff) | |
| download | godot-4ee3f3251dc55ae49c873bc1895cecf75bc0bf8a.tar.gz godot-4ee3f3251dc55ae49c873bc1895cecf75bc0bf8a.tar.zst godot-4ee3f3251dc55ae49c873bc1895cecf75bc0bf8a.zip | |
Merge pull request #17382 from bojidar-bg/13971-path-array-unsaved
Duplicate Arrays and Dictionaries when instancing scene in editor
Diffstat (limited to 'scene/resources')
| -rw-r--r-- | scene/resources/packed_scene.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/packed_scene.cpp b/scene/resources/packed_scene.cpp index 3df9285bb..846f6e356 100644 --- a/scene/resources/packed_scene.cpp +++ b/scene/resources/packed_scene.cpp @@ -249,6 +249,8 @@ Node *SceneState::instance(GenEditState p_edit_state) const { //must make a copy, because this res is local to scene } } + } else if (p_edit_state == GEN_EDIT_STATE_INSTANCE) { + value = value.duplicate(true); // Duplicate arrays and dictionaries for the editor } node->set(snames[nprops[j].name], value, &valid); } |
