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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user