2
0
Эх сурвалжийг харах

Update procedural_geometry.rst

Lines 24 and 68 should be 'Mesh.PRIMITIVE_TRIANGLES' and not 'Mesh.PRIMITIVE_TRIANGLE'
tree786 6 жил өмнө
parent
commit
05fb9e7f93

+ 2 - 2
tutorials/content/procedural_geometry.rst

@@ -21,7 +21,7 @@ Here is a simple example of how to use it to add a single triangle.
 
 
     var st = SurfaceTool.new()
     var st = SurfaceTool.new()
 
 
-    st.begin(Mesh.PRIMITIVE_TRIANGLE)
+    st.begin(Mesh.PRIMITIVE_TRIANGLES)
 
 
     # Prepare attributes for add_vertex.
     # Prepare attributes for add_vertex.
     st.add_normal(Vector3(0, 0, 1))
     st.add_normal(Vector3(0, 0, 1))
@@ -65,7 +65,7 @@ It's used similar to *SurfaceTool*.
         clear()
         clear()
 
 
         # Begin draw.
         # Begin draw.
-        begin(Mesh.PRIMITIVE_TRIANGLE)
+        begin(Mesh.PRIMITIVE_TRIANGLES)
 
 
         # Prepare attributes for add_vertex.
         # Prepare attributes for add_vertex.
         set_normal( Vector3(0, 0, 1))
         set_normal( Vector3(0, 0, 1))