Skip to content

Commit

Permalink
chore: support empty mesh without position
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 committed Sep 18, 2024
1 parent 147f37a commit e255399
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Internal/MeshInfo2/MeshInfo2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ void CopyVertexAttr<T>(
Action<int>? setHasAttribute,
Action<Vertex, T> assign)
{
if (Vertices.Count == 0) return;

var dimension = mesh.GetVertexAttributeDimension(attribute);

if (dimension == 0)
Expand Down

0 comments on commit e255399

Please sign in to comment.