mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
Add MeshExtensions.HasAnyVertices
This commit is contained in:
parent
c3aba07d32
commit
5b61c85ec1
@ -32,6 +32,11 @@ namespace AssetRipper.SourceGenerated.Extensions
|
||||
return true;
|
||||
}
|
||||
|
||||
public static bool HasAnyVertices(this IMesh mesh)
|
||||
{
|
||||
return mesh.CompressedMesh.Vertices.NumItems > 0 || mesh.VertexData.VertexCount > 0;
|
||||
}
|
||||
|
||||
public static void ReadData(
|
||||
this IMesh mesh,
|
||||
out Vector3[]? vertices,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user