diff options
author | Will Nations <willnationsdev@gmail.com> | 2017-12-17 16:07:15 -0600 |
---|---|---|
committer | Will Nations <willnationsdev@gmail.com> | 2017-12-17 16:07:15 -0600 |
commit | f19fc83546f0557054816bfcd2e5342c82cf54c9 (patch) | |
tree | b2eb497e74cfded3cbfc7999432c12c200ccbd9c /scene | |
parent | 1b9c8daf7bb981f93e23a0a9acd5fbb9b90730fc (diff) |
Dictionary::copy -> ::duplicate
Diffstat (limited to 'scene')
-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 efc5d269a6..0791cfbdb3 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -2156,7 +2156,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(); } @@ -2269,7 +2269,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(); } |