mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Update procedural_geometry.rst
Lines 24 and 68 should be 'Mesh.PRIMITIVE_TRIANGLES' and not 'Mesh.PRIMITIVE_TRIANGLE'
This commit is contained in:
@@ -21,7 +21,7 @@ Here is a simple example of how to use it to add a single triangle.
|
||||
|
||||
var st = SurfaceTool.new()
|
||||
|
||||
st.begin(Mesh.PRIMITIVE_TRIANGLE)
|
||||
st.begin(Mesh.PRIMITIVE_TRIANGLES)
|
||||
|
||||
# Prepare attributes for add_vertex.
|
||||
st.add_normal(Vector3(0, 0, 1))
|
||||
@@ -65,7 +65,7 @@ It's used similar to *SurfaceTool*.
|
||||
clear()
|
||||
|
||||
# Begin draw.
|
||||
begin(Mesh.PRIMITIVE_TRIANGLE)
|
||||
begin(Mesh.PRIMITIVE_TRIANGLES)
|
||||
|
||||
# Prepare attributes for add_vertex.
|
||||
set_normal( Vector3(0, 0, 1))
|
||||
|
||||
Reference in New Issue
Block a user