mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-02 06:17:03 +01:00
Update NavigationPolygonInstance when polygons of NavigationPolygon change
Updates NavigationPolygonInstance polygons on the NavigationServer2D when the NavigationPolygon Resource emits its changed signal due to e.g. polygons altered by script.
This commit is contained in:
parent
208225bfaa
commit
1d428ac1c9
@ -499,6 +499,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 {
|
||||
|
Loading…
Reference in New Issue
Block a user