diff options
| author | Rémi Verschelde | 2017-12-17 23:58:59 +0100 |
|---|---|---|
| committer | GitHub | 2017-12-17 23:58:59 +0100 |
| commit | e83c50293929a0170af87d3c10318f400ceee07d (patch) | |
| tree | 7f8dbc51b785247d7846fa4cab7ab7d271de4d72 /scene/main/node.cpp | |
| parent | 27642868f18007883c25177f959cb223f4e325f3 (diff) | |
| parent | f19fc83546f0557054816bfcd2e5342c82cf54c9 (diff) | |
| download | godot-e83c50293929a0170af87d3c10318f400ceee07d.tar.gz godot-e83c50293929a0170af87d3c10318f400ceee07d.tar.zst godot-e83c50293929a0170af87d3c10318f400ceee07d.zip | |
Diffstat (limited to 'scene/main/node.cpp')
| -rw-r--r-- | scene/main/node.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp index af7a6bddd..de1ab9959 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -2162,7 +2162,7 @@ Node *Node::_duplicate(int p_flags, Map<const Node *, Node *> *r_duplimap) const Variant value = N->get()->get(name); // Duplicate dictionaries and arrays, mainly needed for __meta__ if (value.get_type() == Variant::DICTIONARY) { - value = Dictionary(value).copy(); + value = Dictionary(value).duplicate(); } else if (value.get_type() == Variant::ARRAY) { value = Array(value).duplicate(); } @@ -2303,7 +2303,7 @@ void Node::_duplicate_and_reown(Node *p_new_parent, const Map<Node *, Node *> &p Variant value = get(name); // Duplicate dictionaries and arrays, mainly needed for __meta__ if (value.get_type() == Variant::DICTIONARY) { - value = Dictionary(value).copy(); + value = Dictionary(value).duplicate(); } else if (value.get_type() == Variant::ARRAY) { value = Array(value).duplicate(); } |
