From 1b7457237702aa754232b1d5b8a49f83a267f7eb Mon Sep 17 00:00:00 2001 From: Devin Date: Wed, 26 Apr 2023 09:01:31 -0500 Subject: 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) --- doc/classes/MeshDataTool.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') 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; -- cgit v1.2.3