mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 21:35:52 +08:00
Initialize defaultScene to -1
To prevent undefined behavior if the model is serialized without defaultScene being set explicitly.
This commit is contained in:
parent
23d1ff2880
commit
a0a62bde1c
@ -1141,7 +1141,7 @@ class Model {
|
||||
std::vector<Scene> scenes;
|
||||
std::vector<Light> lights;
|
||||
|
||||
int defaultScene;
|
||||
int defaultScene = -1;
|
||||
std::vector<std::string> extensionsUsed;
|
||||
std::vector<std::string> extensionsRequired;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user