mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-07 14:49:04 +08:00
fix glview in case gltf asset doesn't have a default scene
This commit is contained in:
parent
4de57db325
commit
cba75b9927
@ -783,7 +783,7 @@ int main(int argc, char **argv) {
|
||||
Init();
|
||||
|
||||
// DBG
|
||||
PrintNodes(model.scenes[model.defaultScene]);
|
||||
PrintNodes(model.scenes[model.defaultScene > -1 ? model.defaultScene : 0]);
|
||||
|
||||
if (!glfwInit()) {
|
||||
std::cerr << "Failed to initialize GLFW." << std::endl;
|
||||
|
Loading…
x
Reference in New Issue
Block a user