Skip to content

Commit

Permalink
Assimp: fix loading embedded textures in FBX
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Jun 26, 2024
1 parent 70d7c82 commit 8e30de7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PlugIns/Assimp/src/AssimpLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,8 @@ bool AssimpLoader::_load(const char* name, Assimp::Importer& importer, Mesh* mes
flags &= ~aiProcess_GenNormals; // prefer smooth normals

importer.SetPropertyFloat("PP_GSN_MAX_SMOOTHING_ANGLE", maxEdgeAngle);
importer.SetPropertyBool(AI_CONFIG_IMPORT_FBX_EMBEDDED_TEXTURES_LEGACY_NAMING, true);

const aiScene* scene = importer.ReadFile(name, flags);

// If the import failed, report it
Expand Down

0 comments on commit 8e30de7

Please sign in to comment.