Missed serialization texture sampler name fixed.

According to the glTF 2.0 specification it exists, the internal tinygltf structure contains 'name' field as well.
This commit is contained in:
s00665032 2023-01-13 12:52:08 +07:00
parent 477d977fea
commit 137a7ca999

View File

@ -7440,6 +7440,9 @@ static void SerializeGltfNode(const Node &node, json &o) {
}
static void SerializeGltfSampler(const Sampler &sampler, json &o) {
if (!sampler.name.empty()) {
SerializeStringProperty("name", sampler.name, o);
}
if (sampler.magFilter != -1) {
SerializeNumberProperty("magFilter", sampler.magFilter, o);
}