remove tabs
This commit is contained in:
parent
2439679b0c
commit
2b65555d5f
@ -664,26 +664,26 @@ void WriterNodeVisitor::apply(osg::Geometry& geometry)
|
|||||||
|
|
||||||
void WriterNodeVisitor::apply(osg::Group& node)
|
void WriterNodeVisitor::apply(osg::Group& node)
|
||||||
{
|
{
|
||||||
if (_firstNodeProcessed)
|
if (_firstNodeProcessed)
|
||||||
{
|
{
|
||||||
FbxNode* parent = _curFbxNode;
|
FbxNode* parent = _curFbxNode;
|
||||||
|
|
||||||
FbxNode* nodeFBX = FbxNode::Create(_pSdkManager, node.getName().empty() ? "DefaultName" : node.getName().c_str());
|
FbxNode* nodeFBX = FbxNode::Create(_pSdkManager, node.getName().empty() ? "DefaultName" : node.getName().c_str());
|
||||||
_curFbxNode->AddChild(nodeFBX);
|
_curFbxNode->AddChild(nodeFBX);
|
||||||
_curFbxNode = nodeFBX;
|
_curFbxNode = nodeFBX;
|
||||||
|
|
||||||
traverse(node);
|
traverse(node);
|
||||||
|
|
||||||
if (_listTriangles.size() > 0)
|
if (_listTriangles.size() > 0)
|
||||||
buildFaces(node.getName(), _geometryList, _listTriangles, _texcoords);
|
buildFaces(node.getName(), _geometryList, _listTriangles, _texcoords);
|
||||||
|
|
||||||
_curFbxNode = parent;
|
_curFbxNode = parent;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//ignore the root node to maintain same hierarchy
|
//ignore the root node to maintain same hierarchy
|
||||||
_firstNodeProcessed = true;
|
_firstNodeProcessed = true;
|
||||||
traverse(node);
|
traverse(node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ class WriterNodeVisitor: public osg::NodeVisitor
|
|||||||
_externalWriter(srcDirectory, osgDB::getFilePath(fileName), true, 0),
|
_externalWriter(srcDirectory, osgDB::getFilePath(fileName), true, 0),
|
||||||
_texcoords(false),
|
_texcoords(false),
|
||||||
_drawableNum(0),
|
_drawableNum(0),
|
||||||
_firstNodeProcessed(false)
|
_firstNodeProcessed(false)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
virtual void apply(osg::Geometry& node);
|
virtual void apply(osg::Geometry& node);
|
||||||
@ -235,8 +235,8 @@ class WriterNodeVisitor: public osg::NodeVisitor
|
|||||||
///Tell us if the last apply succeed, useful to stop going through the graph.
|
///Tell us if the last apply succeed, useful to stop going through the graph.
|
||||||
bool _succeedLastApply;
|
bool _succeedLastApply;
|
||||||
|
|
||||||
///Marks if the first node is processed.
|
///Marks if the first node is processed.
|
||||||
bool _firstNodeProcessed;
|
bool _firstNodeProcessed;
|
||||||
|
|
||||||
///The current directory.
|
///The current directory.
|
||||||
std::string _directory;
|
std::string _directory;
|
||||||
|
Loading…
Reference in New Issue
Block a user