mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-04-23 14:39:56 +08:00
🐛 Store scene extras and exteions on the scene
This was being stored in the wrong place
This commit is contained in:
parent
bc753d4ac5
commit
e29ba7c49a
@ -5832,13 +5832,13 @@ bool TinyGLTF::LoadFromString(Model *model, std::string *err, std::string *warn,
|
|||||||
{
|
{
|
||||||
json_const_iterator it;
|
json_const_iterator it;
|
||||||
if (FindMember(o, "extensions", it)) {
|
if (FindMember(o, "extensions", it)) {
|
||||||
model->extensions_json_string = JsonToString(GetValue(it));
|
scene.extensions_json_string = JsonToString(GetValue(it));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
json_const_iterator it;
|
json_const_iterator it;
|
||||||
if (FindMember(o, "extras", it)) {
|
if (FindMember(o, "extras", it)) {
|
||||||
model->extras_json_string = JsonToString(GetValue(it));
|
scene.extras_json_string = JsonToString(GetValue(it));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user