Restructed the checks in the CollectLowestTransformsVisitor::removeTransforms() to avoid benign case being flagged as warning.

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/branches/OpenSceneGraph-3.2@14754 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2015-03-03 12:56:10 +00:00
parent edf27e36ed
commit 7f4d116391

View File

@@ -1099,13 +1099,7 @@ bool CollectLowestTransformsVisitor::removeTransforms(osg::Node* nodeWeCannotRem
titr!=_transformMap.end();
++titr)
{
if (titr->first==0)
{
OSG_NOTICE<<"Warning: CollectLowestTransformsVisitor::removeTransforms() error, encountered a NULL Transform pointer"<<std::endl;
break;
}
if (titr->second._canBeApplied)
if (titr->first!=0 && titr->second._canBeApplied)
{
if (titr->first!=nodeWeCannotRemove)
{