OpenGEX: Fix usage of texture specular token
parent
50c7301a38
commit
f63b10bf45
|
@ -1085,6 +1085,8 @@ void OpenGEXImporter::handleTextureNode(ODDLParser::DDLNode *node, aiScene * /*p
|
||||||
tex.Set(val->getString());
|
tex.Set(val->getString());
|
||||||
if (prop->m_value->getString() == Grammar::DiffuseTextureToken) {
|
if (prop->m_value->getString() == Grammar::DiffuseTextureToken) {
|
||||||
m_currentMaterial->AddProperty(&tex, AI_MATKEY_TEXTURE_DIFFUSE(0));
|
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) {
|
} else if (prop->m_value->getString() == Grammar::SpecularPowerTextureToken) {
|
||||||
m_currentMaterial->AddProperty(&tex, AI_MATKEY_TEXTURE_SPECULAR(0));
|
m_currentMaterial->AddProperty(&tex, AI_MATKEY_TEXTURE_SPECULAR(0));
|
||||||
} else if (prop->m_value->getString() == Grammar::EmissionTextureToken) {
|
} else if (prop->m_value->getString() == Grammar::EmissionTextureToken) {
|
||||||
|
|
Loading…
Reference in New Issue