Fixed compilation error in src/osgDB/FileUtils.cpp.

Added support for nested NodeCallbacks, allowing them to be chained together
so that multiple operations can be applied.
This commit is contained in:
Robert Osfield
2001-11-11 22:32:59 +00:00
parent 879a753ee2
commit 5ceefdcc12
9 changed files with 67 additions and 11 deletions

View File

@@ -57,7 +57,7 @@ class TransformCallback : public osg::NodeCallback{
}
// must continue subgraph traversal.
nv->traverse(*node);
traverse(node,nv);
}

View File

@@ -84,8 +84,7 @@ class TransformCallback : public osg::NodeCallback{
}
// must continue subgraph traversal.
nv->traverse(*node);
traverse(node,nv);
}

View File

@@ -31,6 +31,7 @@ C++FILES = \
Material.cpp\
Matrix.cpp\
Node.cpp\
NodeCallback.cpp\
NodeVisitor.cpp\
Notify.cpp\
Object.cpp\

View File

@@ -99,9 +99,6 @@ void Matrix::set( float a00, float a01, float a02, float a03,
void Matrix::setTrans( float tx, float ty, float tz )
{
#ifdef WARN_DEPRECATED
notify(NOTICE) << "Matrix::setTrans is deprecated."<<endl;
#endif
ensureRealized();
_mat[3][0] = tx;

View File

@@ -206,7 +206,7 @@ char *osgDB::findDSO( const char *name )
}
else
{
return (char *)strdup(_name);
return (char *)strdup(name);
}
}
#endif