From 30d22305e10d66ec661b06db3b6b047143a35bfe Mon Sep 17 00:00:00 2001 From: boruok Date: Thu, 11 Nov 2021 14:29:19 +0900 Subject: [PATCH] fixed typo in NavigationPolygon doc --- doc/classes/NavigationPolygon.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/NavigationPolygon.xml b/doc/classes/NavigationPolygon.xml index 50dc7976d2d..530a940dcc6 100644 --- a/doc/classes/NavigationPolygon.xml +++ b/doc/classes/NavigationPolygon.xml @@ -18,7 +18,7 @@ var polygon = NavigationPolygon.new() var vertices = PoolVector2Array([Vector2(0, 0), Vector2(0, 50), Vector2(50, 50), Vector2(50, 0)]) polygon.set_vertices(vertices) - var indices = PoolIntArray(0, 3, 1) + var indices = PoolIntArray([0, 1, 2, 3]) polygon.add_polygon(indices) $NavigationPolygonInstance.navpoly = polygon [/codeblock]