summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scene/main/node.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp
index 604a322a8b..ad3495a881 100644
--- a/scene/main/node.cpp
+++ b/scene/main/node.cpp
@@ -2737,9 +2737,7 @@ Node *Node::_duplicate(int p_flags, HashMap<const Node *, Node *> *r_duplimap) c
}
} else {
- if (value.get_type() != Variant::OBJECT && (value.get_type() != Variant::ARRAY || static_cast<Array>(value).get_typed_builtin() != Variant::OBJECT)) {
- current_node->set(name, value);
- }
+ current_node->set(name, value);
}
}
}