Skip to content

Commit

Permalink
Fix NavigationRegion2D clear button not updating debug visuals
Browse files Browse the repository at this point in the history
Fixes that NavigationRegion2D editor plugin clear button did not update the debug visuals.
  • Loading branch information
smix8 committed Jun 10, 2024
1 parent 5833f59 commit 14bed69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/plugins/navigation_polygon_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

Expand Down

0 comments on commit 14bed69

Please sign in to comment.