Fix float and int comparison.

This commit is contained in:
Syoyo Fujita 2020-04-29 19:16:35 +09:00
parent 978adee547
commit 18f0e20a11

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);