diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2020-03-09 12:15:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-09 12:15:02 +0100 |
| commit | bc9e9f1dfca72747a048701f2f18dc0f3a878f75 (patch) | |
| tree | 1fcd1b3334d5c7483e4794d81e7c7d60fd737de7 /modules | |
| parent | e162c07af933488cd5d867424e7a22b162334e5e (diff) | |
| parent | d63bf6dea5b94d7f74b8ea22c4a182d205b1d93f (diff) | |
| download | redot-engine-bc9e9f1dfca72747a048701f2f18dc0f3a878f75.tar.gz | |
Merge pull request #36911 from lupoDharkael/nav-rename
Complete NavigationMeshInstance rename
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/gdnavigation/navigation_mesh_editor_plugin.cpp | 6 | ||||
| -rw-r--r-- | modules/gdnavigation/navigation_mesh_editor_plugin.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/gdnavigation/navigation_mesh_editor_plugin.cpp b/modules/gdnavigation/navigation_mesh_editor_plugin.cpp index 5c298ae9e4..e6ff7a7afa 100644 --- a/modules/gdnavigation/navigation_mesh_editor_plugin.cpp +++ b/modules/gdnavigation/navigation_mesh_editor_plugin.cpp @@ -84,13 +84,13 @@ void NavigationMeshEditor::_clear_pressed() { } } -void NavigationMeshEditor::edit(NavigationRegion *p_nav_mesh_instance) { +void NavigationMeshEditor::edit(NavigationRegion *p_nav_region) { - if (p_nav_mesh_instance == NULL || node == p_nav_mesh_instance) { + if (p_nav_region == NULL || node == p_nav_region) { return; } - node = p_nav_mesh_instance; + node = p_nav_region; } void NavigationMeshEditor::_bind_methods() { diff --git a/modules/gdnavigation/navigation_mesh_editor_plugin.h b/modules/gdnavigation/navigation_mesh_editor_plugin.h index 7c3faebf57..847ad4f63d 100644 --- a/modules/gdnavigation/navigation_mesh_editor_plugin.h +++ b/modules/gdnavigation/navigation_mesh_editor_plugin.h @@ -61,7 +61,7 @@ protected: void _notification(int p_option); public: - void edit(NavigationRegion *p_nav_mesh_instance); + void edit(NavigationRegion *p_nav_region); NavigationMeshEditor(); ~NavigationMeshEditor(); }; |
