Skip to content

Commit dedb444

Browse files
authored
Merge pull request godotengine#8899 from smix8/navmesh_example
Fix script error in NavigationMesh example
2 parents a621959 + 4fd70a0 commit dedb444

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/navigation/navigation_using_navigationmeshes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ The following script uses the NavigationServer to update a navigation region wit
378378
PackedInt32Array([0, 1, 2, 3])
379379
)
380380

381-
NavigationServer2D.region_set_navigation_polygon(new_2d_region_rid, new_navigation_mesh)
381+
NavigationServer2D.region_set_navigation_polygon(region_rid, navigation_mesh)
382382

383383
.. code-tab:: gdscript 3D GDScript
384384

@@ -408,4 +408,4 @@ The following script uses the NavigationServer to update a navigation region wit
408408
PackedInt32Array([0, 1, 2, 3])
409409
)
410410

411-
NavigationServer3D.region_set_navigation_mesh(new_3d_region_rid, navigation_mesh)
411+
NavigationServer3D.region_set_navigation_mesh(region_rid, navigation_mesh)

0 commit comments

Comments
 (0)