summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scene/main/node.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp
index ae8e2a493d..5bbf8ebff4 100644
--- a/scene/main/node.cpp
+++ b/scene/main/node.cpp
@@ -2907,9 +2907,8 @@ void Node::_duplicate_properties(const Node *p_root, const Node *p_original, Nod
arr[i] = p_copy->get_node_or_null(p_original->get_path_to(property_node));
}
}
- value = arr;
- p_copy->set(name, value);
}
+ p_copy->set(name, arr);
} else {
p_copy->set(name, value);
}