From Mathias Froehlich, "change adds some code to also print the NodePath when a NaN is

detected in the CullVisitor.
May be this gives a bit more of a hint when this happens."
This commit is contained in:
Robert Osfield
2009-04-24 11:01:00 +00:00
parent d91e9db152
commit 4eeb85fd0b

View File

@@ -778,6 +778,11 @@ void CullVisitor::apply(Geode& node)
osg::notify(osg::NOTICE)<<"CullVisitor::apply(Geode&) detected NaN,"<<std::endl
<<" depth="<<depth<<", center=("<<bb.center()<<"),"<<std::endl
<<" matrix="<<matrix<<std::endl;
osg::notify(osg::DEBUG_INFO) << " NodePath:" << std::endl;
for (NodePath::const_iterator i = getNodePath().begin(); i != getNodePath().end(); ++i)
{
osg::notify(osg::DEBUG_INFO) << " \"" << (*i)->getName() << "\"" << std::endl;
}
}
else
{
@@ -851,6 +856,11 @@ void CullVisitor::apply(Billboard& node)
osg::notify(osg::NOTICE)<<"CullVisitor::apply(Billboard&) detected NaN,"<<std::endl
<<" depth="<<depth<<", pos=("<<pos<<"),"<<std::endl
<<" *billboard_matrix="<<*billboard_matrix<<std::endl;
osg::notify(osg::DEBUG_INFO) << " NodePath:" << std::endl;
for (NodePath::const_iterator i = getNodePath().begin(); i != getNodePath().end(); ++i)
{
osg::notify(osg::DEBUG_INFO) << " \"" << (*i)->getName() << "\"" << std::endl;
}
}
else
{