diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-09-23 11:57:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-23 11:57:03 +0200 |
commit | 81d713e5c275f5f3e1d3362f5061d3815a6de742 (patch) | |
tree | 953612ecf13b16b1a8dbb760ee541f018932212f /scene/main | |
parent | 2613e59f59a67d78214e58cdb8856f50bfc08b19 (diff) | |
parent | 9dec4dc07b9a6cfb8f78ee782b4b2183ec1f2daa (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/main')
-rw-r--r-- | scene/main/scene_tree.cpp | 2 |
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; |