You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix NavigationRegion2D clear button not updating debug visuals
Fixes that NavigationRegion2D editor plugin clear button did not update the debug visuals.
This commit is contained in:
@@ -217,6 +217,8 @@ void NavigationPolygonEditor::_clear_pressed() {
|
|||||||
if (node) {
|
if (node) {
|
||||||
if (node->get_navigation_polygon().is_valid()) {
|
if (node->get_navigation_polygon().is_valid()) {
|
||||||
node->get_navigation_polygon()->clear();
|
node->get_navigation_polygon()->clear();
|
||||||
|
// Needed to update all the region internals.
|
||||||
|
node->set_navigation_polygon(node->get_navigation_polygon());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user