clean up
This commit is contained in:
parent
82cae6daf4
commit
0cbf839425
@ -648,15 +648,7 @@ void WriterNodeVisitor::createListTriangle(const osg::Geometry* geo,
|
||||
|
||||
void WriterNodeVisitor::apply(osg::Geometry& geometry)
|
||||
{
|
||||
// here we simply create a single fbx node to assign it the mesh
|
||||
// retrieved from the geometry.
|
||||
|
||||
// create fbx node to contain the single geometry
|
||||
//FbxNode* parent = _curFbxNode;
|
||||
//FbxNode* nodeFBX = FbxNode::Create(_pSdkManager, geometry.getName().empty() ? "Geometry" : geometry.getName().c_str());
|
||||
//_curFbxNode->AddChild(nodeFBX);
|
||||
//_curFbxNode = nodeFBX;
|
||||
|
||||
_geometryList.push_back(&geometry);
|
||||
|
||||
pushStateSet(geometry.getStateSet());
|
||||
@ -668,8 +660,6 @@ void WriterNodeVisitor::apply(osg::Geometry& geometry)
|
||||
if (getNodePath().size() == 1)
|
||||
buildFaces(geometry.getName(), _geometryList, _listTriangles, _texcoords);
|
||||
|
||||
// return to parent fbx node
|
||||
//_curFbxNode = parent;
|
||||
}
|
||||
|
||||
void WriterNodeVisitor::apply(osg::Group& node)
|
||||
@ -691,10 +681,9 @@ void WriterNodeVisitor::apply(osg::Group& node)
|
||||
}
|
||||
else
|
||||
{
|
||||
//ignore the root node to maintain same hierarchy
|
||||
_firstNodeProcessed = true;
|
||||
traverse(node);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user