From af5f5e5a3f2f0b4026cab75208b23f8720e997d0 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 30 Sep 2002 16:50:16 +0000 Subject: [PATCH] Added traverse the AnimationPath callbacks. --- src/osg/MatrixTransform.cpp | 2 ++ src/osg/PositionAttitudeTransform.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/osg/MatrixTransform.cpp b/src/osg/MatrixTransform.cpp index 3d41f709c..57e4af867 100644 --- a/src/osg/MatrixTransform.cpp +++ b/src/osg/MatrixTransform.cpp @@ -47,4 +47,6 @@ void MatrixTransform::AnimationPathCallback::operator()(Node* node, NodeVisitor* mt->setMatrix(matrix); } } + // must call any nested node callbacks and continue subgraph traversal. + traverse(node,nv); } diff --git a/src/osg/PositionAttitudeTransform.cpp b/src/osg/PositionAttitudeTransform.cpp index f82e38f12..e122b868f 100644 --- a/src/osg/PositionAttitudeTransform.cpp +++ b/src/osg/PositionAttitudeTransform.cpp @@ -58,4 +58,6 @@ void PositionAttitudeTransform::AnimationPathCallback::operator()(Node* node, No pat->setAttitude(cp._rotation); } } + // must call any nested node callbacks and continue subgraph traversal. + traverse(node,nv); }