mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-08-30 15:08:53 +00:00
Fix float and int comparison.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user