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:
commit
31179d7322
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@
|
||||||
vertex += mdt.get_vertex_normal(i)
|
vertex += mdt.get_vertex_normal(i)
|
||||||
# Save your change.
|
# Save your change.
|
||||||
mdt.set_vertex(i, vertex)
|
mdt.set_vertex(i, vertex)
|
||||||
mesh.surface_remove(0)
|
mesh.clear_surfaces()
|
||||||
mdt.commit_to_surface(mesh)
|
mdt.commit_to_surface(mesh)
|
||||||
var mi = MeshInstance.new()
|
var mi = MeshInstance.new()
|
||||||
mi.mesh = mesh
|
mi.mesh = mesh
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
// Save your change.
|
// Save your change.
|
||||||
mdt.SetVertex(i, vertex);
|
mdt.SetVertex(i, vertex);
|
||||||
}
|
}
|
||||||
mesh.SurfaceRemove(0);
|
mesh.ClearSurfaces();
|
||||||
mdt.CommitToSurface(mesh);
|
mdt.CommitToSurface(mesh);
|
||||||
var mi = new MeshInstance();
|
var mi = new MeshInstance();
|
||||||
mi.Mesh = mesh;
|
mi.Mesh = mesh;
|
||||||
|
|
Loading…
Reference in a new issue