Skip to content

Commit

Permalink
Merge pull request #235 from zeux/varnull
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuhlmann authored Nov 27, 2023
2 parents 5a9f50f + 00265be commit 64d6781
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cgltf.h
Original file line number Diff line number Diff line change
Expand Up @@ -1742,6 +1742,11 @@ cgltf_result cgltf_validate(cgltf_data* data)
}
}

for (cgltf_size i = 0; i < data->variants_count; ++i)
{
CGLTF_ASSERT_IF(!data->variants[i].name, cgltf_result_invalid_gltf);
}

return cgltf_result_success;
}

Expand Down

0 comments on commit 64d6781

Please sign in to comment.