Browse Source

Classref fixes

(cherry picked from commit 98452b288a114ff9ffbbbcf0db1adf1d61c78ff3)
Max Hilbrunner 2 years ago
parent
commit
cede79e089
1 changed files with 8 additions and 11 deletions
  1. 8 11
      classes/class_immediatemesh.rst

+ 8 - 11
classes/class_immediatemesh.rst

@@ -26,17 +26,14 @@ Here's a sample on how to generate a triangular face:
 
 .. tabs::
 
-var mesh = ImmediateMesh.new()
-
-mesh.surface_begin(Mesh.PRIMITIVE_TRIANGLES)
-
-mesh.surface_add_vertex(Vector3.LEFT)
-
-mesh.surface_add_vertex(Vector3.FORWARD)
-
-mesh.surface_add_vertex(Vector3.ZERO)
-
-mesh.surface_end()
+ .. code-tab:: gdscript
+
+    var mesh = ImmediateMesh.new()
+    mesh.surface_begin(Mesh.PRIMITIVE_TRIANGLES)
+    mesh.surface_add_vertex(Vector3.LEFT)
+    mesh.surface_add_vertex(Vector3.FORWARD)
+    mesh.surface_add_vertex(Vector3.ZERO)
+    mesh.surface_end()