diff options
author | Devin <beastmodeiswhatiam@gmail.com> | 2023-04-26 09:01:31 -0500 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2023-04-27 08:41:23 +0200 |
commit | 1b7457237702aa754232b1d5b8a49f83a267f7eb (patch) | |
tree | 0c9723418c3f1845f9cc819b162bfcdefe6816bc /doc/classes | |
parent | ba004ea1c3b00c5516548edde7bdfe2d72d51ea1 (diff) |
Updated GDScript example to use clear_surfaces() and C Sharp example to use ClearSurfaces() instead of non-existent surface_remove() and SurfaceRemove()
(cherry picked from commit 3b615ed789e71da686a2d61e2eaae7c86d7dff48)
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/MeshDataTool.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/MeshDataTool.xml b/doc/classes/MeshDataTool.xml index b46f080a10..033f3f63f8 100644 --- a/doc/classes/MeshDataTool.xml +++ b/doc/classes/MeshDataTool.xml @@ -19,7 +19,7 @@ vertex += mdt.get_vertex_normal(i) # Save your change. mdt.set_vertex(i, vertex) - mesh.surface_remove(0) + mesh.clear_surfaces() mdt.commit_to_surface(mesh) var mi = MeshInstance.new() mi.mesh = mesh @@ -38,7 +38,7 @@ // Save your change. mdt.SetVertex(i, vertex); } - mesh.SurfaceRemove(0); + mesh.ClearSurfaces(); mdt.CommitToSurface(mesh); var mi = new MeshInstance(); mi.Mesh = mesh; |