mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 19:05:59 +08:00
clean up
This commit is contained in:
parent
a1a34cb54d
commit
8d5d0b34be
@ -7283,12 +7283,7 @@ static void SerializeGltfNode(const Node &node, detail::json &o) {
|
||||
detail::JsonAddMember(extensions, "KHR_lights_punctual", std::move(lights_punctual));
|
||||
detail::FindMember(o, "KHR_lights_punctual", it);
|
||||
}
|
||||
auto & lights_punctual = detail::GetValue(it);
|
||||
if (detail::FindMember(lights_punctual, "light", it)) {
|
||||
detail::JsonAssign(detail::GetValue(it), detail::json(node.light));
|
||||
} else {
|
||||
SerializeNumberProperty("light", node.light, lights_punctual);
|
||||
}
|
||||
SerializeNumberProperty("light", node.light, detail::GetValue(it));
|
||||
} else {
|
||||
// node has no light ref (any longer)... so we clean up
|
||||
detail::json_iterator ext_it;
|
||||
|
Loading…
x
Reference in New Issue
Block a user