Restructed the checks in the CollectLowestTransformsVisitor::removeTransforms() to avoid benign case being flagged as warning.
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14753 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
parent
ec6edf535d
commit
5346e7772a
@ -1099,13 +1099,7 @@ bool CollectLowestTransformsVisitor::removeTransforms(osg::Node* nodeWeCannotRem
|
|||||||
titr!=_transformMap.end();
|
titr!=_transformMap.end();
|
||||||
++titr)
|
++titr)
|
||||||
{
|
{
|
||||||
if (titr->first==0)
|
if (titr->first!=0 && titr->second._canBeApplied)
|
||||||
{
|
|
||||||
OSG_NOTICE<<"Warning: CollectLowestTransformsVisitor::removeTransforms() error, encountered a NULL Transform pointer"<<std::endl;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (titr->second._canBeApplied)
|
|
||||||
{
|
{
|
||||||
if (titr->first!=nodeWeCannotRemove)
|
if (titr->first!=nodeWeCannotRemove)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user