gltfpack: Fix MSVC warning wrt precision loss

This commit is contained in:
Arseny Kapoulkine
2024-05-15 09:26:43 -07:00
parent 316672116f
commit 3681d30fb8
+1 -1
View File
@@ -551,7 +551,7 @@ static void simplifyMesh(Mesh& mesh, float threshold, bool attributes, bool aggr
const Stream* attr = getStream(mesh, cgltf_attribute_type_color);
attr = attr ? attr : getStream(mesh, cgltf_attribute_type_normal);
const float attrw[3] = {1e-2, 1e-2, 1e-2};
const float attrw[3] = {1e-2f, 1e-2f, 1e-2f};
std::vector<unsigned int> indices(mesh.indices.size());
if (attributes && attr)