From 2facc73f2c2485b9f69187e5323e3c93f6f9b101 Mon Sep 17 00:00:00 2001 From: outfrost Date: Tue, 29 Jan 2019 20:14:35 +0100 Subject: [PATCH] Apply all transforms in 3D assets during import --- level.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/level.c b/level.c index 7e7f029..787461d 100644 --- a/level.c +++ b/level.c @@ -1,5 +1,6 @@ #include #include +#include #include #include "level.h" @@ -78,7 +79,7 @@ void buildLevelFromImage(TgaImage* image) { } const AiScene* importScene(const char* path) { - const AiScene* scene = aiImportFile(path, 0u); + const AiScene* scene = aiImportFile(path, aiProcess_PreTransformVertices); if (scene == NULL) { logError("Failed to import asset from %s", path); } -- 2.44.0