From f5bd6b0487ab75e30b82948b02d815fb7839f7e3 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 30 Jan 2013 10:49:18 +0000 Subject: [PATCH] Added disabling of the traversal of the Timeout in update when the timout is not displayed and disabled traversal by the SlideEventHandler. --- src/osgPresentation/Timeout.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/osgPresentation/Timeout.cpp b/src/osgPresentation/Timeout.cpp index 6a1c778f3..e14201dcb 100644 --- a/src/osgPresentation/Timeout.cpp +++ b/src/osgPresentation/Timeout.cpp @@ -290,10 +290,22 @@ void Timeout::traverse(osg::NodeVisitor& nv) } } + else if (nv.getVisitorType()==osg::NodeVisitor::UPDATE_VISITOR) + { + if (_displayTimeout) Transform::traverse(nv); + } else { - OSG_NOTICE<<"Timout::traverse() "<