mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 09:45:59 +08:00
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:
parent
477d977fea
commit
137a7ca999
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user