mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
missing to load the texture
This commit is contained in:
parent
b2f615915e
commit
6cc1c27fd2
1 changed files with 3 additions and 3 deletions
|
|
@ -1050,12 +1050,12 @@ void ColladaUtils::exportColladaMaterials(TiXmlElement* rootNode, const Optimize
|
||||||
|
|
||||||
TiXmlElement* initNode = new TiXmlElement("init_from");
|
TiXmlElement* initNode = new TiXmlElement("init_from");
|
||||||
imageNode->LinkEndChild(initNode);
|
imageNode->LinkEndChild(initNode);
|
||||||
TiXmlText* initText = new TiXmlText(avar("%s", diffuseMap.c_str())); // need the extension to load the texture
|
TiXmlText* initText = new TiXmlText(avar("file://%s", diffuseMap.c_str())); // need the extension to load the texture
|
||||||
initNode->LinkEndChild(initText);
|
initNode->LinkEndChild(initText);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Finally the effects library
|
// Next the effects library
|
||||||
TiXmlElement* effectLibNode = new TiXmlElement("library_effects");
|
TiXmlElement* effectLibNode = new TiXmlElement("library_effects");
|
||||||
rootNode->LinkEndChild(effectLibNode);
|
rootNode->LinkEndChild(effectLibNode);
|
||||||
|
|
||||||
|
|
@ -1186,7 +1186,7 @@ void ColladaUtils::exportColladaMaterials(TiXmlElement* rootNode, const Optimize
|
||||||
colorRefractionNode->LinkEndChild(colorRefractionNodeText);
|
colorRefractionNode->LinkEndChild(colorRefractionNodeText);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Next the material library
|
// Finally the material library
|
||||||
TiXmlElement* matLibNode = new TiXmlElement("library_materials");
|
TiXmlElement* matLibNode = new TiXmlElement("library_materials");
|
||||||
rootNode->LinkEndChild(matLibNode);
|
rootNode->LinkEndChild(matLibNode);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue