mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-15 13:25:56 +08:00
Merge pull request #325 from iceydee/scene-extras
Store scene extras and extensions on the scene
This commit is contained in:
commit
f66f3bfeb3
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user