🐛 Store scene extras and exteions on the scene

This was being stored in the wrong place
This commit is contained in:
Mio Nilsson
2021-05-11 11:50:35 +02:00
parent bc753d4ac5
commit e29ba7c49a

View File

@@ -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));
}
}
}