Keep binds for connected signals when changing node type
(cherry picked from commit a1e7febbb3
)
This commit is contained in:
parent
37c97d09e6
commit
d59b97cca7
|
@ -1801,7 +1801,7 @@ void SceneTreeDock::replace_node(Node *p_node, Node *p_by_node, bool p_keep_prop
|
||||||
Object::Connection &c = F->get();
|
Object::Connection &c = F->get();
|
||||||
if (!(c.flags & Object::CONNECT_PERSIST))
|
if (!(c.flags & Object::CONNECT_PERSIST))
|
||||||
continue;
|
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