diff options
author | DualMatrix <piet.goris@gmail.com> | 2018-09-22 12:37:21 +0200 |
---|---|---|
committer | DualMatrix <piet.goris@gmail.com> | 2018-09-22 12:37:21 +0200 |
commit | 9dec4dc07b9a6cfb8f78ee782b4b2183ec1f2daa (patch) | |
tree | 050785776073177e8087e026de12590861d052a2 /scene | |
parent | 561a7772c628d0cf36bd925d68a98a767758345b (diff) |
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.
Diffstat (limited to 'scene')
-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; |