Merge pull request #92994 from smix8/navmesh_2d_clear

Fix NavigationRegion2D editor plugin clear button not updating debug visuals
This commit is contained in:
Rémi Verschelde 2024-06-11 16:59:38 +02:00
commit 1e0015ac64
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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());
}
}