From 0c60af89818d69c740a814a9660d9cfa178b8d50 Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 12 Jun 2019 12:14:36 +0200 Subject: [PATCH] Tweak: Change check order --- src/models.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/models.c b/src/models.c index 6e29cbfa..761b617f 100644 --- a/src/models.c +++ b/src/models.c @@ -637,12 +637,12 @@ Model LoadModel(const char *fileName) #if defined(SUPPORT_FILEFORMAT_OBJ) if (IsFileExtension(fileName, ".obj")) model = LoadOBJ(fileName); #endif -#if defined(SUPPORT_FILEFORMAT_GLTF) - if (IsFileExtension(fileName, ".gltf") || IsFileExtension(fileName, ".glb")) model = LoadGLTF(fileName); -#endif #if defined(SUPPORT_FILEFORMAT_IQM) if (IsFileExtension(fileName, ".iqm")) model = LoadIQM(fileName); #endif +#if defined(SUPPORT_FILEFORMAT_GLTF) + if (IsFileExtension(fileName, ".gltf") || IsFileExtension(fileName, ".glb")) model = LoadGLTF(fileName); +#endif // Make sure model transform is set to identity matrix! model.transform = MatrixIdentity();