Reworked signal connection system, added support for Callable and Signal objects and made them default.
This commit is contained in:
parent
1a4be2cd8f
commit
69c95f4b4c
275 changed files with 3831 additions and 2948 deletions
|
|
@ -1024,7 +1024,7 @@ void EditorSelection::add_node(Node *p_node) {
|
|||
}
|
||||
selection[p_node] = meta;
|
||||
|
||||
p_node->connect("tree_exiting", this, "_node_removed", varray(p_node), CONNECT_ONESHOT);
|
||||
p_node->connect_compat("tree_exiting", this, "_node_removed", varray(p_node), CONNECT_ONESHOT);
|
||||
|
||||
//emit_signal("selection_changed");
|
||||
}
|
||||
|
|
@ -1042,7 +1042,7 @@ void EditorSelection::remove_node(Node *p_node) {
|
|||
if (meta)
|
||||
memdelete(meta);
|
||||
selection.erase(p_node);
|
||||
p_node->disconnect("tree_exiting", this, "_node_removed");
|
||||
p_node->disconnect_compat("tree_exiting", this, "_node_removed");
|
||||
//emit_signal("selection_changed");
|
||||
}
|
||||
bool EditorSelection::is_selected(Node *p_node) const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue