mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-15 00:16:05 +08:00
Only serialize Accessor.normalized if it is true
This commit is contained in:
parent
ae9364902a
commit
2e8a115d7e
@ -6374,7 +6374,8 @@ static void SerializeGltfAccessor(Accessor &accessor, json &o) {
|
|||||||
SerializeNumberProperty<size_t>("count", accessor.count, o);
|
SerializeNumberProperty<size_t>("count", accessor.count, o);
|
||||||
SerializeNumberArrayProperty<double>("min", accessor.minValues, o);
|
SerializeNumberArrayProperty<double>("min", accessor.minValues, o);
|
||||||
SerializeNumberArrayProperty<double>("max", accessor.maxValues, o);
|
SerializeNumberArrayProperty<double>("max", accessor.maxValues, o);
|
||||||
SerializeValue("normalized", Value(accessor.normalized), o);
|
if (accessor.normalized)
|
||||||
|
SerializeValue("normalized", Value(accessor.normalized), o);
|
||||||
std::string type;
|
std::string type;
|
||||||
switch (accessor.type) {
|
switch (accessor.type) {
|
||||||
case TINYGLTF_TYPE_SCALAR:
|
case TINYGLTF_TYPE_SCALAR:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user