You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user