Updated GDScript example to use clear_surfaces() and C Sharp example to use ClearSurfaces() instead of non-existent surface_remove() and SurfaceRemove()
This commit is contained in:
parent
e2e870c611
commit
3b615ed789
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue