From 7b13107d392cb67d1b01d8edbc570fc31244138c Mon Sep 17 00:00:00 2001 From: Sr3qt <105977398+Sr3qt@users.noreply.github.com> Date: Tue, 4 Jun 2024 13:43:43 +0200 Subject: [PATCH] Updated function call The function "surface_clear" does not exist as of 4.2.2. "clear_surfaces" does however. (cherry picked from commit 3844fba41dbaf439921157e0ae56363cbee88d9c) --- tutorials/3d/procedural_geometry/immediatemesh.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/3d/procedural_geometry/immediatemesh.rst b/tutorials/3d/procedural_geometry/immediatemesh.rst index 9507cced5..311631b5d 100644 --- a/tutorials/3d/procedural_geometry/immediatemesh.rst +++ b/tutorials/3d/procedural_geometry/immediatemesh.rst @@ -78,7 +78,7 @@ The example code below draws a single triangle in the ``_ready()`` function. The ImmediateMesh can also be used across frames. Each time you call ``surface_begin()`` and ``surface_end()``, you are adding a new surface to the ImmediateMesh. If you want to recreate the mesh from scratch each frame, call -``surface_clear()`` before calling ``surface_begin()``. +``clear_surfaces()`` before calling ``surface_begin()``. .. tabs:: .. code-tab:: gdscript GDScript