summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-05-18 15:29:32 +0200
committerGitHub <noreply@github.com>2022-05-18 15:29:32 +0200
commit533e364ab5a672630beeff7fded4cf99f59567c9 (patch)
tree467dd4a5a2c14ea0a559ee3a0204ec8cf814076a
parent5b3d5962858dbd096ddfe01bc214cdfc55fef473 (diff)
parent4035a4103cebb2a90696123f0bd510ac9b2f2c09 (diff)
Merge pull request #61149 from smix8/navigation_region2d_update_navpoly_4.x
-rw-r--r--scene/2d/navigation_region_2d.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/2d/navigation_region_2d.cpp b/scene/2d/navigation_region_2d.cpp
index f46453283c..260faf1d68 100644
--- a/scene/2d/navigation_region_2d.cpp
+++ b/scene/2d/navigation_region_2d.cpp
@@ -509,6 +509,9 @@ void NavigationRegion2D::_navpoly_changed() {
if (is_inside_tree() && (Engine::get_singleton()->is_editor_hint() || get_tree()->is_debugging_navigation_hint())) {
update();
}
+ if (navpoly.is_valid()) {
+ NavigationServer2D::get_singleton()->region_set_navpoly(region, navpoly);
+ }
}
void NavigationRegion2D::_map_changed(RID p_map) {
if (enabled && get_world_2d()->get_navigation_map() == p_map) {