diff options
author | kobewi <kobewi4e@gmail.com> | 2023-07-03 21:29:37 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2023-07-17 19:35:57 +0200 |
commit | de4a3fa151d2cef139149bb2b878ec8923ba2ce8 (patch) | |
tree | 1a023d3bf44bef9f87522c94c4f951bf164877f5 /scene/2d/navigation_region_2d.cpp | |
parent | 2c552140686b5366e48c61a1a15001f15359cccc (diff) | |
download | redot-engine-de4a3fa151d2cef139149bb2b878ec8923ba2ce8.tar.gz |
Unify and streamline connecting to Resource changes
Diffstat (limited to 'scene/2d/navigation_region_2d.cpp')
-rw-r--r-- | scene/2d/navigation_region_2d.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scene/2d/navigation_region_2d.cpp b/scene/2d/navigation_region_2d.cpp index 529545de97..fa03713592 100644 --- a/scene/2d/navigation_region_2d.cpp +++ b/scene/2d/navigation_region_2d.cpp @@ -30,7 +30,6 @@ #include "navigation_region_2d.h" -#include "core/core_string_names.h" #include "core/math/geometry_2d.h" #include "scene/2d/navigation_obstacle_2d.h" #include "scene/resources/world_2d.h" @@ -193,14 +192,14 @@ void NavigationRegion2D::set_navigation_polygon(const Ref<NavigationPolygon> &p_ } if (navigation_polygon.is_valid()) { - navigation_polygon->disconnect(CoreStringNames::get_singleton()->changed, callable_mp(this, &NavigationRegion2D::_navigation_polygon_changed)); + navigation_polygon->disconnect_changed(callable_mp(this, &NavigationRegion2D::_navigation_polygon_changed)); } navigation_polygon = p_navigation_polygon; NavigationServer2D::get_singleton()->region_set_navigation_polygon(region, p_navigation_polygon); if (navigation_polygon.is_valid()) { - navigation_polygon->connect(CoreStringNames::get_singleton()->changed, callable_mp(this, &NavigationRegion2D::_navigation_polygon_changed)); + navigation_polygon->connect_changed(callable_mp(this, &NavigationRegion2D::_navigation_polygon_changed)); } _navigation_polygon_changed(); |