diff options
author | kobewi <kobewi4e@gmail.com> | 2023-06-11 22:11:25 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2023-06-11 22:15:54 +0200 |
commit | 366c9678ca84d0060e455f90abf55793a98a82e9 (patch) | |
tree | 6fa6f63772b038eb8075c18965206fead1c90dcc /modules/gridmap/editor | |
parent | 37d1dfef9d81aade27ab0c56fc6b6f12f6a08045 (diff) | |
download | redot-engine-366c9678ca84d0060e455f90abf55793a98a82e9.tar.gz |
Fix some invalid plugin edit calls
Diffstat (limited to 'modules/gridmap/editor')
-rw-r--r-- | modules/gridmap/editor/grid_map_editor_plugin.cpp | 9 | ||||
-rw-r--r-- | modules/gridmap/editor/grid_map_editor_plugin.h | 1 |
2 files changed, 0 insertions, 10 deletions
diff --git a/modules/gridmap/editor/grid_map_editor_plugin.cpp b/modules/gridmap/editor/grid_map_editor_plugin.cpp index 20f1aa357b..14f7b9b502 100644 --- a/modules/gridmap/editor/grid_map_editor_plugin.cpp +++ b/modules/gridmap/editor/grid_map_editor_plugin.cpp @@ -46,12 +46,6 @@ #include "scene/gui/separator.h" #include "scene/main/window.h" -void GridMapEditor::_node_removed(Node *p_node) { - if (p_node == node) { - node = nullptr; - } -} - void GridMapEditor::_configure() { if (!node) { return; @@ -1030,7 +1024,6 @@ void GridMapEditor::_update_theme() { void GridMapEditor::_notification(int p_what) { switch (p_what) { case NOTIFICATION_ENTER_TREE: { - get_tree()->connect("node_removed", callable_mp(this, &GridMapEditor::_node_removed)); mesh_library_palette->connect("item_selected", callable_mp(this, &GridMapEditor::_item_selected_cbk)); for (int i = 0; i < 3; i++) { grid[i] = RS::get_singleton()->mesh_create(); @@ -1051,7 +1044,6 @@ void GridMapEditor::_notification(int p_what) { } break; case NOTIFICATION_EXIT_TREE: { - get_tree()->disconnect("node_removed", callable_mp(this, &GridMapEditor::_node_removed)); _clear_clipboard_data(); for (int i = 0; i < 3; i++) { @@ -1471,7 +1463,6 @@ void GridMapEditorPlugin::make_visible(bool p_visible) { } else { grid_map_editor->spatial_editor_hb->hide(); grid_map_editor->hide(); - grid_map_editor->edit(nullptr); grid_map_editor->set_process(false); } } diff --git a/modules/gridmap/editor/grid_map_editor_plugin.h b/modules/gridmap/editor/grid_map_editor_plugin.h index 7c7dbacc81..6fedcd9c99 100644 --- a/modules/gridmap/editor/grid_map_editor_plugin.h +++ b/modules/gridmap/editor/grid_map_editor_plugin.h @@ -222,7 +222,6 @@ class GridMapEditor : public VBoxContainer { protected: void _notification(int p_what); - void _node_removed(Node *p_node); static void _bind_methods(); public: |