From 9dec4dc07b9a6cfb8f78ee782b4b2183ec1f2daa Mon Sep 17 00:00:00 2001 From: DualMatrix Date: Sat, 22 Sep 2018 12:37:21 +0200 Subject: Fixed duplicating nodes not attaching script in-game with Sync Scene Changes enabled Fixed duplicating nodes not attaching script in-game with Sync Scene Changes enabled. --- scene/main/scene_tree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/main') diff --git a/scene/main/scene_tree.cpp b/scene/main/scene_tree.cpp index 16be6dad7d..aebc96aad7 100644 --- a/scene/main/scene_tree.cpp +++ b/scene/main/scene_tree.cpp @@ -1602,7 +1602,7 @@ void SceneTree::_live_edit_duplicate_node_func(const NodePath &p_at, const Strin continue; Node *n2 = n->get_node(p_at); - Node *dup = n2->duplicate(true); + Node *dup = n2->duplicate(Node::DUPLICATE_SIGNALS | Node::DUPLICATE_GROUPS | Node::DUPLICATE_SCRIPTS); if (!dup) continue; -- cgit v1.2.3