diff options
author | smix8 <52464204+smix8@users.noreply.github.com> | 2024-06-10 19:32:06 +0200 |
---|---|---|
committer | smix8 <52464204+smix8@users.noreply.github.com> | 2024-06-10 19:36:21 +0200 |
commit | 14bed692bf64adda57c79ed6e7d995457f393da0 (patch) | |
tree | 4252298a1336d5a7cad79bebe4ba2b7785bece5f /editor | |
parent | 5833f597865c773fae3ee09fc4e31d4a243f812d (diff) | |
download | redot-engine-14bed692bf64adda57c79ed6e7d995457f393da0.tar.gz |
Fix NavigationRegion2D clear button not updating debug visuals
Fixes that NavigationRegion2D editor plugin clear button did not update the 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()); } } |