aboutsummaryrefslogtreecommitdiff
path: root/scene/3d/navigation_mesh.cpp
diff options
context:
space:
mode:
authorNathan Warden2017-12-15 15:09:06 -0500
committerNathan Warden2017-12-15 15:09:06 -0500
commit38caa4126f1d91d25d2fc9fb1d8fa68dde01299d (patch)
tree6273933b5d6ad572a58d2bd903b1836142c25ab9 /scene/3d/navigation_mesh.cpp
parentb872439eefb7d54a572ace3a57fea01787c46952 (diff)
downloadgodot-38caa4126f1d91d25d2fc9fb1d8fa68dde01299d.tar.gz
godot-38caa4126f1d91d25d2fc9fb1d8fa68dde01299d.tar.zst
godot-38caa4126f1d91d25d2fc9fb1d8fa68dde01299d.zip
Diffstat (limited to 'scene/3d/navigation_mesh.cpp')
-rw-r--r--scene/3d/navigation_mesh.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/3d/navigation_mesh.cpp b/scene/3d/navigation_mesh.cpp
index 40750cdfe..4fb12b8fa 100644
--- a/scene/3d/navigation_mesh.cpp
+++ b/scene/3d/navigation_mesh.cpp
@@ -471,7 +471,7 @@ void NavigationMeshInstance::set_enabled(bool p_enabled) {
if (navmesh.is_valid()) {
- nav_id = navigation->navmesh_create(navmesh, get_relative_transform(navigation), this);
+ nav_id = navigation->navmesh_add(navmesh, get_relative_transform(navigation), this);
}
}
}
@@ -508,7 +508,7 @@ void NavigationMeshInstance::_notification(int p_what) {
if (enabled && navmesh.is_valid()) {
- nav_id = navigation->navmesh_create(navmesh, get_relative_transform(navigation), this);
+ nav_id = navigation->navmesh_add(navmesh, get_relative_transform(navigation), this);
}
break;
}
@@ -568,7 +568,7 @@ void NavigationMeshInstance::set_navigation_mesh(const Ref<NavigationMesh> &p_na
navmesh = p_navmesh;
if (navigation && navmesh.is_valid() && enabled) {
- nav_id = navigation->navmesh_create(navmesh, get_relative_transform(navigation), this);
+ nav_id = navigation->navmesh_add(navmesh, get_relative_transform(navigation), this);
}
if (debug_view && navmesh.is_valid()) {