Merge pull request #22342 from DualMatrix/duplicate_no_fun

Fixed duplicating nodes not attaching script in-game with Sync Scene Changes enabled
This commit is contained in:
Rémi Verschelde 2018-09-23 11:57:03 +02:00 committed by GitHub
commit 81d713e5c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;