Fix float and int comparison.

This commit is contained in:
Syoyo Fujita
2020-04-29 19:16:35 +09:00
parent bd73fe76f1
commit 5d34059f06

View File

@@ -6513,7 +6513,7 @@ static void SerializeGltfAccessor(Accessor &accessor, json &o) {
if (accessor.bufferView >= 0)
SerializeNumberProperty<int>("bufferView", accessor.bufferView, o);
if (accessor.byteOffset != 0.0)
if (accessor.byteOffset != 0)
SerializeNumberProperty<int>("byteOffset", int(accessor.byteOffset), o);
SerializeNumberProperty<int>("componentType", accessor.componentType, o);