OpenGEX: Fix usage of texture specular token

update_copyrights
Kim Kulling 2022-01-10 21:22:44 +01:00
parent 50c7301a38
commit f63b10bf45
1 changed files with 2 additions and 0 deletions

View File

@ -1085,6 +1085,8 @@ void OpenGEXImporter::handleTextureNode(ODDLParser::DDLNode *node, aiScene * /*p
tex.Set(val->getString());
if (prop->m_value->getString() == Grammar::DiffuseTextureToken) {
m_currentMaterial->AddProperty(&tex, AI_MATKEY_TEXTURE_DIFFUSE(0));
} else if (prop->m_value->getString() == Grammar::DiffuseSpecularTextureToken) {
m_currentMaterial->AddProperty(&tex, AI_MATKEY_TEXTURE_SPECULAR(0));
} else if (prop->m_value->getString() == Grammar::SpecularPowerTextureToken) {
m_currentMaterial->AddProperty(&tex, AI_MATKEY_TEXTURE_SPECULAR(0));
} else if (prop->m_value->getString() == Grammar::EmissionTextureToken) {