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 3b615ed789)
This commit is contained in:
Devin 2023-04-26 09:01:31 -05:00 committed by Rémi Verschelde
parent ba004ea1c3
commit 1b74572377
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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;