mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 06:15:54 +08:00
Fix float and int comparison.
This commit is contained in:
parent
978adee547
commit
18f0e20a11
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user