diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-20 22:29:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-20 22:29:17 +0100 |
commit | e6170aae39194a6ada312ff8a3f53a36bf16aff8 (patch) | |
tree | a7459d240221dc34bb8f87bff05f88c5c50deae6 /editor/scene_tree_editor.cpp | |
parent | d681d99e126bcac87823510ba2a71af0ace6e8dc (diff) | |
parent | aa1102fc536bd7b3a2cff703d79713c454af7e6c (diff) |
Merge pull request #55066 from trollodel/less_singletons_in_editornode
Diffstat (limited to 'editor/scene_tree_editor.cpp')
-rw-r--r-- | editor/scene_tree_editor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/scene_tree_editor.cpp b/editor/scene_tree_editor.cpp index dc95b73569..4a36462d65 100644 --- a/editor/scene_tree_editor.cpp +++ b/editor/scene_tree_editor.cpp @@ -133,8 +133,8 @@ void SceneTreeEditor::_cell_button_pressed(Object *p_item, int p_column, int p_i set_selected(n); - NodeDock::singleton->get_parent()->call("set_current_tab", NodeDock::singleton->get_index()); - NodeDock::singleton->show_connections(); + NodeDock::get_singleton()->get_parent()->call("set_current_tab", NodeDock::get_singleton()->get_index()); + NodeDock::get_singleton()->show_connections(); } else if (p_id == BUTTON_GROUPS) { editor_selection->clear(); @@ -142,8 +142,8 @@ void SceneTreeEditor::_cell_button_pressed(Object *p_item, int p_column, int p_i set_selected(n); - NodeDock::singleton->get_parent()->call("set_current_tab", NodeDock::singleton->get_index()); - NodeDock::singleton->show_groups(); + NodeDock::get_singleton()->get_parent()->call("set_current_tab", NodeDock::get_singleton()->get_index()); + NodeDock::get_singleton()->show_groups(); } } |