summaryrefslogtreecommitdiff
path: root/modules/navigation/navigation_mesh_editor_plugin.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-02-16 20:58:55 +0100
committerGitHub <noreply@github.com>2022-02-16 20:58:55 +0100
commit009254d87c1de573d2abeb273676f22d0bdfc67f (patch)
tree6123649c85c0a6d513224901de8a25bc068c4901 /modules/navigation/navigation_mesh_editor_plugin.cpp
parent5d5f80b5295479ca4e12989394b3a2af8819a1ee (diff)
parent6553f5c242865f9aadbe2fdab6db6876c44ac472 (diff)
Merge pull request #58187 from jakobbouchard/notification-switch-chunk-c
Convert _notification methods to switch - Chunk C
Diffstat (limited to 'modules/navigation/navigation_mesh_editor_plugin.cpp')
-rw-r--r--modules/navigation/navigation_mesh_editor_plugin.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/navigation/navigation_mesh_editor_plugin.cpp b/modules/navigation/navigation_mesh_editor_plugin.cpp
index 04eca5fb0b..511490ba07 100644
--- a/modules/navigation/navigation_mesh_editor_plugin.cpp
+++ b/modules/navigation/navigation_mesh_editor_plugin.cpp
@@ -46,10 +46,12 @@ void NavigationMeshEditor::_node_removed(Node *p_node) {
}
}
-void NavigationMeshEditor::_notification(int p_option) {
- if (p_option == NOTIFICATION_ENTER_TREE) {
- button_bake->set_icon(get_theme_icon(SNAME("Bake"), SNAME("EditorIcons")));
- button_reset->set_icon(get_theme_icon(SNAME("Reload"), SNAME("EditorIcons")));
+void NavigationMeshEditor::_notification(int p_what) {
+ switch (p_what) {
+ case NOTIFICATION_ENTER_TREE: {
+ button_bake->set_icon(get_theme_icon(SNAME("Bake"), SNAME("EditorIcons")));
+ button_reset->set_icon(get_theme_icon(SNAME("Reload"), SNAME("EditorIcons")));
+ } break;
}
}