diff options
Diffstat (limited to 'editor/node_dock.cpp')
-rw-r--r-- | editor/node_dock.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/editor/node_dock.cpp b/editor/node_dock.cpp index a076b1eecc..9b9cfad9eb 100644 --- a/editor/node_dock.cpp +++ b/editor/node_dock.cpp @@ -34,7 +34,6 @@ #include "editor_scale.h" void NodeDock::show_groups() { - groups_button->set_pressed(true); connections_button->set_pressed(false); groups->show(); @@ -42,7 +41,6 @@ void NodeDock::show_groups() { } void NodeDock::show_connections() { - groups_button->set_pressed(false); connections_button->set_pressed(true); groups->hide(); @@ -53,7 +51,6 @@ void NodeDock::_bind_methods() { } void NodeDock::_notification(int p_what) { - if (p_what == NOTIFICATION_ENTER_TREE || p_what == NOTIFICATION_THEME_CHANGED) { connections_button->set_icon(get_theme_icon("Signals", "EditorIcons")); groups_button->set_icon(get_theme_icon("Groups", "EditorIcons")); @@ -63,20 +60,19 @@ void NodeDock::_notification(int p_what) { NodeDock *NodeDock::singleton = nullptr; void NodeDock::update_lists() { - connections->update_tree(); } void NodeDock::set_node(Node *p_node) { - connections->set_node(p_node); groups->set_current(p_node); if (p_node) { - if (connections_button->is_pressed()) + if (connections_button->is_pressed()) { connections->show(); - else + } else { groups->show(); + } mode_hb->show(); select_a_node->hide(); @@ -89,7 +85,6 @@ void NodeDock::set_node(Node *p_node) { } NodeDock::NodeDock() { - singleton = this; set_name("Node"); |