Fix importing materials from fbx files

#628
This commit is contained in:
Wojtek Figat
2021-09-23 12:40:34 +02:00
parent 3976d95610
commit 257f57f926

View File

@@ -172,7 +172,7 @@ struct OpenFbxImporterData
bool ImportMaterialTexture(const ofbx::Material* mat, ofbx::Texture::TextureType textureType, int32& textureIndex, TextureEntry::TypeHint type) const
{
const ofbx::Texture* tex = mat->getTexture(ofbx::Texture::DIFFUSE);
const ofbx::Texture* tex = mat->getTexture(textureType);
if (tex)
{
// Find texture file path