From 812ce3046bd690cf6b7802c0bb5d679bd2cf52f0 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Tue, 1 Feb 2022 20:53:58 +0000 Subject: [PATCH] Generate normals in model compiler if not available --- tools/modelcompiler/src/modeleditor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/modelcompiler/src/modeleditor.cpp b/tools/modelcompiler/src/modeleditor.cpp index 8f4d91e..4a0152a 100755 --- a/tools/modelcompiler/src/modeleditor.cpp +++ b/tools/modelcompiler/src/modeleditor.cpp @@ -174,7 +174,8 @@ void ModelEditor::compile_model() { aiProcess_ImproveCacheLocality | aiProcess_JoinIdenticalVertices | aiProcess_OptimizeMeshes | - aiProcess_CalcTangentSpace; + aiProcess_CalcTangentSpace | + aiProcess_GenNormals; if(flags.compile_static) { importer.SetPropertyFloat(AI_CONFIG_GLOBAL_SCALE_FACTOR_KEY, 1.0);