aboutsummaryrefslogtreecommitdiff
path: root/editor/property_editor.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2018-04-08 09:39:03 -0300
committerGitHub2018-04-08 09:39:03 -0300
commit4ee3f3251dc55ae49c873bc1895cecf75bc0bf8a (patch)
treead5442ba88596748b67ec6834a50b61543c8d916 /editor/property_editor.cpp
parent8a5fb669ae3590fa1aa3f1fb90d01c3dca843c94 (diff)
parent9f6c0c6eaef754f2049ee536c5b38bfdc65fbd08 (diff)
downloadgodot-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 'editor/property_editor.cpp')
-rw-r--r--editor/property_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp
index 043add046..c73b1bd05 100644
--- a/editor/property_editor.cpp
+++ b/editor/property_editor.cpp
@@ -3939,7 +3939,7 @@ void PropertyEditor::_edit_button(Object *p_item, int p_column, int p_button) {
if (_might_be_in_instance() && _get_instanced_node_original_property(prop, vorig)) {
- _edit_set(prop, vorig);
+ _edit_set(prop, vorig.duplicate(true)); // Set, making sure to duplicate arrays properly
return;
}