Fix warnings
This commit is contained in:
@@ -100,7 +100,7 @@ namespace OpenVulkano::Scene
|
||||
tinyusdz::Attribute uvAttr;
|
||||
std::vector<tinyusdz::value::texcoord2f> uvs(geometry->vertexCount);
|
||||
|
||||
for (int i = 0; i < geometry->vertexCount; ++i)
|
||||
for (uint32_t i = 0; i < geometry->vertexCount; ++i)
|
||||
{
|
||||
const Vertex& v = geometry->vertices[i];
|
||||
pts[i].x = v.position.x;
|
||||
@@ -115,7 +115,7 @@ namespace OpenVulkano::Scene
|
||||
std::vector<int> counts(geometry->indexCount / 3, 3); // NOTE(vb): The value 3 is kind of arbitrary, but this array must be in the mesh!
|
||||
mesh.faceVertexCounts.set_value(counts);
|
||||
|
||||
for (int i = 0; i < geometry->indexCount; ++i)
|
||||
for (uint32_t i = 0; i < geometry->indexCount; ++i)
|
||||
{
|
||||
uint32_t index = GetIndexFromGeometry(geometry, i);
|
||||
indices[i] = index;
|
||||
|
||||
Reference in New Issue
Block a user