소스 검색

Classref fixes

Max Hilbrunner 2 년 전
부모
커밋
98452b288a
2개의 변경된 파일9개의 추가작업 그리고 12개의 파일을 삭제
  1. 1 1
      classes/class_editorexportplatformandroid.rst
  2. 8 11
      classes/class_immediatemesh.rst

+ 1 - 1
classes/class_editorexportplatformandroid.rst

@@ -2054,7 +2054,7 @@ Allows an application to record audio. See `RECORD_AUDIO <https://developer.andr
 
 :ref:`bool<class_bool>` **permissions/reorder_tasks**
 
-Allows an application to change the Z-order of tasks. See `REORDER_TASKS < https://developer.android.com/reference/android/Manifest.permission#REORDER_TASKS>`__.
+Allows an application to change the Z-order of tasks. See `REORDER_TASKS <https://developer.android.com/reference/android/Manifest.permission#REORDER_TASKS>`__.
 
 .. rst-class:: classref-item-separator
 

+ 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()