mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Keep binds for connected signals when changing node type
This commit is contained in:
parent
a53645e726
commit
a1e7febbb3
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user