From 7b39358f467e68148cea962fc9971e30e55a4f80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A4r=20Winzell?= Date: Tue, 6 Aug 2019 16:36:19 -0700 Subject: [PATCH] Be explicit in our list-initialisation. This caused https://github.com/facebookincubator/FBX2glTF/issues/218 in ways that I honestly don't fully understand, and I believe only under Windows, with Release-level optimisation turned on. It's possible we should drop all these initializer lists, and replace them with simple and explicit initialising constructors. Fixes #218. --- src/raw/RawModel.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/raw/RawModel.hpp b/src/raw/RawModel.hpp index 1da65bb..1c5aa36 100644 --- a/src/raw/RawModel.hpp +++ b/src/raw/RawModel.hpp @@ -29,9 +29,9 @@ enum RawVertexAttribute { }; struct RawBlendVertex { - Vec3f position{}; - Vec3f normal{}; - Vec4f tangent{}; + Vec3f position{0.0f}; + Vec3f normal{0.0f}; + Vec4f tangent{0.0f}; bool operator==(const RawBlendVertex& other) const { return position == other.position && normal == other.normal && tangent == other.tangent;