From Alessandro Terenzi: previously the plugin ignored UV scaling values eventually stored in the FBX file, now they are read and set for each supported texture map (not considering reflection maps).

From Michael Platings: fixed UVs for files that don't explicitly reference the name of a UV channel.
This commit is contained in:
Michael PLATINGS
2010-06-09 09:12:20 +00:00
parent 82ea9597e5
commit 5ea4a8c0f3
4 changed files with 79 additions and 36 deletions

View File

@@ -464,7 +464,8 @@ osgDB::ReaderWriter::WriteResult ReaderWriterFBX::writeNode(
{
// If root node is a simple group, put all elements under the FBX root
const osg::Group * osgGroup = node.asGroup();
for(unsigned int child=0; child<osgGroup->getNumChildren(); ++child) {
for (unsigned int child = 0; child < osgGroup->getNumChildren(); ++child)
{
const_cast<osg::Node *>(osgGroup->getChild(child))->accept(writerNodeVisitor);
}
}