From e29ba7c49abef0ed594623f29e54d8a142cd0987 Mon Sep 17 00:00:00 2001 From: Mio Nilsson Date: Tue, 11 May 2021 11:50:35 +0200 Subject: [PATCH] :bug: Store scene extras and exteions on the scene This was being stored in the wrong place --- tiny_gltf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index 0aa9b76..2d3625f 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -5832,13 +5832,13 @@ bool TinyGLTF::LoadFromString(Model *model, std::string *err, std::string *warn, { json_const_iterator it; if (FindMember(o, "extensions", it)) { - model->extensions_json_string = JsonToString(GetValue(it)); + scene.extensions_json_string = JsonToString(GetValue(it)); } } { json_const_iterator it; if (FindMember(o, "extras", it)) { - model->extras_json_string = JsonToString(GetValue(it)); + scene.extras_json_string = JsonToString(GetValue(it)); } } }