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)
|
||||
{
|
||||
if (_firstNodeProcessed)
|
||||
{
|
||||
FbxNode* parent = _curFbxNode;
|
||||
if (_firstNodeProcessed)
|
||||
{
|
||||
FbxNode* parent = _curFbxNode;
|
||||
|
||||
FbxNode* nodeFBX = FbxNode::Create(_pSdkManager, node.getName().empty() ? "DefaultName" : node.getName().c_str());
|
||||
_curFbxNode->AddChild(nodeFBX);
|
||||
_curFbxNode = nodeFBX;
|
||||
FbxNode* nodeFBX = FbxNode::Create(_pSdkManager, node.getName().empty() ? "DefaultName" : node.getName().c_str());
|
||||
_curFbxNode->AddChild(nodeFBX);
|
||||
_curFbxNode = nodeFBX;
|
||||
|
||||
traverse(node);
|
||||
traverse(node);
|
||||
|
||||
if (_listTriangles.size() > 0)
|
||||
buildFaces(node.getName(), _geometryList, _listTriangles, _texcoords);
|
||||
if (_listTriangles.size() > 0)
|
||||
buildFaces(node.getName(), _geometryList, _listTriangles, _texcoords);
|
||||
|
||||
_curFbxNode = parent;
|
||||
}
|
||||
else
|
||||
{
|
||||
//ignore the root node to maintain same hierarchy
|
||||
_firstNodeProcessed = true;
|
||||
traverse(node);
|
||||
_curFbxNode = parent;
|
||||
}
|
||||
else
|
||||
{
|
||||
//ignore the root node to maintain same hierarchy
|
||||
_firstNodeProcessed = true;
|
||||
traverse(node);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -87,7 +87,7 @@ class WriterNodeVisitor: public osg::NodeVisitor
|
||||
_externalWriter(srcDirectory, osgDB::getFilePath(fileName), true, 0),
|
||||
_texcoords(false),
|
||||
_drawableNum(0),
|
||||
_firstNodeProcessed(false)
|
||||
_firstNodeProcessed(false)
|
||||
{}
|
||||
|
||||
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.
|
||||
bool _succeedLastApply;
|
||||
|
||||
///Marks if the first node is processed.
|
||||
bool _firstNodeProcessed;
|
||||
///Marks if the first node is processed.
|
||||
bool _firstNodeProcessed;
|
||||
|
||||
///The current directory.
|
||||
std::string _directory;
|
||||
|
Loading…
Reference in New Issue
Block a user