mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-11 06:59:24 +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();
|
Init();
|
||||||
|
|
||||||
// DBG
|
// DBG
|
||||||
PrintNodes(model.scenes[model.defaultScene]);
|
PrintNodes(model.scenes[model.defaultScene > -1 ? model.defaultScene : 0]);
|
||||||
|
|
||||||
if (!glfwInit()) {
|
if (!glfwInit()) {
|
||||||
std::cerr << "Failed to initialize GLFW." << std::endl;
|
std::cerr << "Failed to initialize GLFW." << std::endl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user