Merge pull request #61150 from smix8/navigation_region2d_update_navpoly_3.x

This commit is contained in:
Rémi Verschelde 2022-05-18 14:36:55 +02:00 committed by GitHub
commit b0a2b34d48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {