From 2b65555d5f76365b93ec0cfcf6c8d34a2473adbf Mon Sep 17 00:00:00 2001 From: Wei Lisi Date: Fri, 19 Apr 2019 13:04:35 +0800 Subject: [PATCH] remove tabs --- src/osgPlugins/fbx/WriterNodeVisitor.cpp | 32 ++++++++++++------------ src/osgPlugins/fbx/WriterNodeVisitor.h | 6 ++--- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/osgPlugins/fbx/WriterNodeVisitor.cpp b/src/osgPlugins/fbx/WriterNodeVisitor.cpp index 7ace61a9f..f7f6a02ab 100644 --- a/src/osgPlugins/fbx/WriterNodeVisitor.cpp +++ b/src/osgPlugins/fbx/WriterNodeVisitor.cpp @@ -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); } } diff --git a/src/osgPlugins/fbx/WriterNodeVisitor.h b/src/osgPlugins/fbx/WriterNodeVisitor.h index b7b779da4..e74ec03ce 100644 --- a/src/osgPlugins/fbx/WriterNodeVisitor.h +++ b/src/osgPlugins/fbx/WriterNodeVisitor.h @@ -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;