diff options
| author | Nathan Warden | 2017-12-15 15:09:06 -0500 |
|---|---|---|
| committer | Nathan Warden | 2017-12-15 15:09:06 -0500 |
| commit | 38caa4126f1d91d25d2fc9fb1d8fa68dde01299d (patch) | |
| tree | 6273933b5d6ad572a58d2bd903b1836142c25ab9 /scene/2d/navigation_polygon.cpp | |
| parent | b872439eefb7d54a572ace3a57fea01787c46952 (diff) | |
| download | godot-38caa4126f1d91d25d2fc9fb1d8fa68dde01299d.tar.gz godot-38caa4126f1d91d25d2fc9fb1d8fa68dde01299d.tar.zst godot-38caa4126f1d91d25d2fc9fb1d8fa68dde01299d.zip | |
Diffstat (limited to 'scene/2d/navigation_polygon.cpp')
| -rw-r--r-- | scene/2d/navigation_polygon.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/2d/navigation_polygon.cpp b/scene/2d/navigation_polygon.cpp index c53241e98..5a6a5128e 100644 --- a/scene/2d/navigation_polygon.cpp +++ b/scene/2d/navigation_polygon.cpp @@ -293,7 +293,7 @@ void NavigationPolygonInstance::set_enabled(bool p_enabled) { if (navpoly.is_valid()) { - nav_id = navigation->navpoly_create(navpoly, get_relative_transform_to_parent(navigation), this); + nav_id = navigation->navpoly_add(navpoly, get_relative_transform_to_parent(navigation), this); } } } @@ -324,7 +324,7 @@ void NavigationPolygonInstance::_notification(int p_what) { if (enabled && navpoly.is_valid()) { - nav_id = navigation->navpoly_create(navpoly, get_relative_transform_to_parent(navigation), this); + nav_id = navigation->navpoly_add(navpoly, get_relative_transform_to_parent(navigation), this); } break; } @@ -419,7 +419,7 @@ void NavigationPolygonInstance::set_navigation_polygon(const Ref<NavigationPolyg } if (navigation && navpoly.is_valid() && enabled) { - nav_id = navigation->navpoly_create(navpoly, get_relative_transform_to_parent(navigation), this); + nav_id = navigation->navpoly_add(navpoly, get_relative_transform_to_parent(navigation), this); } //update_gizmo(); _change_notify("navpoly"); |
