diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-06-11 16:59:38 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-06-11 16:59:38 +0200 |
commit | 1e0015ac648be8a7c0bb58679ff91b2270987005 (patch) | |
tree | e362d850edf3e857d6ab280fd7f4c2aae44b414d /editor | |
parent | 41381a73fe3a5fc338416aac80f28c51ada269d6 (diff) | |
parent | 14bed692bf64adda57c79ed6e7d995457f393da0 (diff) | |
download | redot-engine-1e0015ac648be8a7c0bb58679ff91b2270987005.tar.gz |
Merge pull request #92994 from smix8/navmesh_2d_clear
Fix NavigationRegion2D editor plugin clear button not updating debug visuals
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/navigation_polygon_editor_plugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/navigation_polygon_editor_plugin.cpp b/editor/plugins/navigation_polygon_editor_plugin.cpp index 8926f612a2..ec59bbb543 100644 --- a/editor/plugins/navigation_polygon_editor_plugin.cpp +++ b/editor/plugins/navigation_polygon_editor_plugin.cpp @@ -217,6 +217,8 @@ void NavigationPolygonEditor::_clear_pressed() { if (node) { if (node->get_navigation_polygon().is_valid()) { node->get_navigation_polygon()->clear(); + // Needed to update all the region internals. + node->set_navigation_polygon(node->get_navigation_polygon()); } } |