diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-05-13 12:26:34 +0200 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-05-13 12:39:41 +0200 |
commit | 2f442ff21a8a8d63f7f19d13d9915cf124883d8a (patch) | |
tree | c709a5264a7df5391cc1cc8594e0be6ef1ceb3ee /scene/main/node.cpp | |
parent | d48be8c5ef3d3d1eccf63a198338ded14e301e23 (diff) | |
download | redot-engine-2f442ff21a8a8d63f7f19d13d9915cf124883d8a.tar.gz |
Fix outdated name for `script` `StringName`
Diffstat (limited to 'scene/main/node.cpp')
-rw-r--r-- | scene/main/node.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 8c2b6a1790..15b4186aa1 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -2667,8 +2667,6 @@ Node *Node::_duplicate(int p_flags, HashMap<const Node *, Node *> *r_duplimap) c node->data.editable_instance = data.editable_instance; } - StringName script_property_name = CoreStringName(script); - List<const Node *> hidden_roots; List<const Node *> node_tree; node_tree.push_front(this); @@ -2865,7 +2863,7 @@ void Node::remap_nested_resources(Ref<Resource> p_resource, const HashMap<Ref<Re void Node::_duplicate_properties(const Node *p_root, const Node *p_original, Node *p_copy, int p_flags) const { List<PropertyInfo> props; p_original->get_property_list(&props); - StringName script_property_name = CoreStringNames::get_singleton()->_script; + const StringName &script_property_name = CoreStringName(script); if (p_flags & DUPLICATE_SCRIPTS) { bool is_valid = false; Variant scr = p_original->get(script_property_name, &is_valid); |