Skip to content

Commit

Permalink
Merge pull request #61150 from smix8/navigation_region2d_update_navpo…
Browse files Browse the repository at this point in the history
…ly_3.x
  • Loading branch information
akien-mga authored May 18, 2022
2 parents 8940882 + 37530b0 commit b0a2b34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scene/2d/navigation_polygon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,9 @@ void NavigationPolygonInstance::_navpoly_changed() {
if (is_inside_tree() && (Engine::get_singleton()->is_editor_hint() || get_tree()->is_debugging_navigation_hint())) {
update();
}
if (navpoly.is_valid()) {
Navigation2DServer::get_singleton()->region_set_navpoly(region, navpoly);
}
}

String NavigationPolygonInstance::get_configuration_warning() const {
Expand Down

0 comments on commit b0a2b34

Please sign in to comment.