From Sukender, "Factorized the depth loop ("while ( lastDepth >= _nodePath.size() )...") into a method called updateCurrentDaeNode(). Added missing calls into apply(osg::LightSource &) and daeWriter::apply(osg::Camera &) and daeWriter::apply(osg::CameraView &)"

This commit is contained in:
Robert Osfield
2011-01-19 09:53:34 +00:00
parent 0ed6049390
commit 975aea4a2b
4 changed files with 26 additions and 55 deletions

View File

@@ -141,6 +141,15 @@ void daeWriter::apply( osg::Node &node )
traverse( node );
}
void daeWriter::updateCurrentDaeNode()
{
while ( lastDepth >= _nodePath.size() )
{
//We are not a child of previous node
currentNode = daeSafeCast< domNode >( currentNode->getParentElement() );
--lastDepth;
}
}
std::string daeWriter::uniquify( const std::string &name )
{