Generate normals in model compiler if not available
This commit is contained in:
parent
e15d1c68f8
commit
812ce3046b
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue