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:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user