You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Fix signals/group button on Scene dock
This commit is contained in:
@@ -260,13 +260,21 @@ void SceneTreeEditor::_cell_button_pressed(Object *p_item,int p_column,int p_id)
|
|||||||
|
|
||||||
} else if (p_id==BUTTON_SIGNALS) {
|
} else if (p_id==BUTTON_SIGNALS) {
|
||||||
|
|
||||||
item->select(0);
|
editor_selection->clear();
|
||||||
|
editor_selection->add_node(n);
|
||||||
|
|
||||||
|
set_selected(n);
|
||||||
|
|
||||||
NodeDock::singleton->get_parent()->call("set_current_tab",NodeDock::singleton->get_index());
|
NodeDock::singleton->get_parent()->call("set_current_tab",NodeDock::singleton->get_index());
|
||||||
NodeDock::singleton->show_connections();
|
NodeDock::singleton->show_connections();
|
||||||
|
|
||||||
} else if (p_id==BUTTON_GROUPS) {
|
} else if (p_id==BUTTON_GROUPS) {
|
||||||
|
|
||||||
item->select(0);
|
editor_selection->clear();
|
||||||
|
editor_selection->add_node(n);
|
||||||
|
|
||||||
|
set_selected(n);
|
||||||
|
|
||||||
NodeDock::singleton->get_parent()->call("set_current_tab",NodeDock::singleton->get_index());
|
NodeDock::singleton->get_parent()->call("set_current_tab",NodeDock::singleton->get_index());
|
||||||
NodeDock::singleton->show_groups();
|
NodeDock::singleton->show_groups();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user