Merge pull request #76482 from damdalf/class_ref_documentation_MeshDataTool_code_examples

Corrected the GDScript and C# examples for the MeshDataTool class reference documentation
This commit is contained in:
Rémi Verschelde 2023-04-27 08:20:18 +02:00
commit 31179d7322
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;