mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-15 02:15:59 +08:00
Merge pull request #399 from e2e4e6/texture_sampler_name_fix
Missed serialization texture sampler name fixed.
This commit is contained in:
commit
f051892c55
@ -7440,6 +7440,9 @@ static void SerializeGltfNode(const Node &node, json &o) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void SerializeGltfSampler(const Sampler &sampler, json &o) {
|
static void SerializeGltfSampler(const Sampler &sampler, json &o) {
|
||||||
|
if (!sampler.name.empty()) {
|
||||||
|
SerializeStringProperty("name", sampler.name, o);
|
||||||
|
}
|
||||||
if (sampler.magFilter != -1) {
|
if (sampler.magFilter != -1) {
|
||||||
SerializeNumberProperty("magFilter", sampler.magFilter, o);
|
SerializeNumberProperty("magFilter", sampler.magFilter, o);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user