From 3681d30fb8dcda94922ee34a014fe07c7f0b0405 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Wed, 15 May 2024 09:26:43 -0700 Subject: [PATCH] gltfpack: Fix MSVC warning wrt precision loss --- gltf/mesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gltf/mesh.cpp b/gltf/mesh.cpp index 44114081..5307b2da 100644 --- a/gltf/mesh.cpp +++ b/gltf/mesh.cpp @@ -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 indices(mesh.indices.size()); if (attributes && attr)