summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-09-23 11:57:03 +0200
committerGitHub <noreply@github.com>2018-09-23 11:57:03 +0200
commit81d713e5c275f5f3e1d3362f5061d3815a6de742 (patch)
tree953612ecf13b16b1a8dbb760ee541f018932212f /scene
parent2613e59f59a67d78214e58cdb8856f50bfc08b19 (diff)
parent9dec4dc07b9a6cfb8f78ee782b4b2183ec1f2daa (diff)
Merge pull request #22342 from DualMatrix/duplicate_no_fun
Fixed duplicating nodes not attaching script in-game with Sync Scene Changes enabled
Diffstat (limited to 'scene')
-rw-r--r--scene/main/scene_tree.cpp2
1 files changed, 1 insertions, 1 deletions
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;