diff --git a/src/Apps/Tools/CubeTest.cpp b/src/Apps/Tools/CubeTest.cpp index 995ce0e..2e1a9db 100644 --- a/src/Apps/Tools/CubeTest.cpp +++ b/src/Apps/Tools/CubeTest.cpp @@ -69,9 +69,9 @@ struct SkinnedVertex : public StaticVertex Array boneWeights; }; -struct MeshData +struct MeshVertexData { - MeshData(MeshVertexType type) + MeshVertexData(MeshVertexType type) : vertexType(type) { switch(type) @@ -99,6 +99,14 @@ struct MeshData MeshVertexType vertexType; Variant, Vector> vertices; +}; + +struct MeshData +{ + MeshData(MeshVertexType type) + : vertexData{ type } {} + + MeshVertexData vertexData; Vector indices; AABB bounds; }; @@ -177,7 +185,7 @@ Result ParseOBJ(StringView buffer) .normal = indices[i][2] != -1 ? normals [indices[i][2]] : vec3{}, }; - auto& vertices = data.GetStaticVertices(); + auto& vertices = data.vertexData.GetStaticVertices(); size_t vertexIdx = vertices.FindIdx(vertex); if (vertexIdx == vertices.InvalidIdx)