diff options
author | Nathan Warden <nathan@nathanwarden.com> | 2017-12-15 15:09:06 -0500 |
---|---|---|
committer | Nathan Warden <nathan@nathanwarden.com> | 2017-12-15 15:09:06 -0500 |
commit | 38caa4126f1d91d25d2fc9fb1d8fa68dde01299d (patch) | |
tree | 6273933b5d6ad572a58d2bd903b1836142c25ab9 /scene/3d/navigation.cpp | |
parent | b872439eefb7d54a572ace3a57fea01787c46952 (diff) | |
download | redot-engine-38caa4126f1d91d25d2fc9fb1d8fa68dde01299d.tar.gz |
Renamed navmesh/poly_create to navmesh/poly_add since no navmesh is created.
Diffstat (limited to 'scene/3d/navigation.cpp')
-rw-r--r-- | scene/3d/navigation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/navigation.cpp b/scene/3d/navigation.cpp index b6507aedb3..78cf75e3b3 100644 --- a/scene/3d/navigation.cpp +++ b/scene/3d/navigation.cpp @@ -202,7 +202,7 @@ void Navigation::_navmesh_unlink(int p_id) { nm.linked = false; } -int Navigation::navmesh_create(const Ref<NavigationMesh> &p_mesh, const Transform &p_xform, Object *p_owner) { +int Navigation::navmesh_add(const Ref<NavigationMesh> &p_mesh, const Transform &p_xform, Object *p_owner) { int id = last_id++; NavMesh nm; @@ -686,7 +686,7 @@ Vector3 Navigation::get_up_vector() const { void Navigation::_bind_methods() { - ClassDB::bind_method(D_METHOD("navmesh_create", "mesh", "xform", "owner"), &Navigation::navmesh_create, DEFVAL(Variant())); + ClassDB::bind_method(D_METHOD("navmesh_add", "mesh", "xform", "owner"), &Navigation::navmesh_add, DEFVAL(Variant())); ClassDB::bind_method(D_METHOD("navmesh_set_transform", "id", "xform"), &Navigation::navmesh_set_transform); ClassDB::bind_method(D_METHOD("navmesh_remove", "id"), &Navigation::navmesh_remove); |