From 8d5d0b34be32eeb6406255ac26b77b1c060a0faf Mon Sep 17 00:00:00 2001 From: David Siegel Date: Wed, 7 Jun 2023 15:35:35 +0200 Subject: [PATCH] clean up --- tiny_gltf.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index 26def60..1e757ed 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -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;