mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-08-11 23:59:24 +00: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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user