Merge pull request #27228 from Kanabenki/preserve-binds-change-node

Preserve extra arguments for connected signals when changing node type
This commit is contained in:
Rémi Verschelde 2019-04-02 11:30:45 +02:00 committed by GitHub
commit 612a109b81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1801,7 +1801,7 @@ void SceneTreeDock::replace_node(Node *p_node, Node *p_by_node, bool p_keep_prop
Object::Connection &c = F->get();
if (!(c.flags & Object::CONNECT_PERSIST))
continue;
newnode->connect(c.signal, c.target, c.method, varray(), Object::CONNECT_PERSIST);
newnode->connect(c.signal, c.target, c.method, c.binds, Object::CONNECT_PERSIST);
}
}