Skip to content

Commit

Permalink
Merge pull request #92994 from smix8/navmesh_2d_clear
Browse files Browse the repository at this point in the history
Fix NavigationRegion2D editor plugin clear button not updating debug visuals
  • Loading branch information
akien-mga committed Jun 11, 2024
2 parents 41381a7 + 14bed69 commit 1e0015a
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 1e0015a

Please sign in to comment.