From e1a6a18036d1d2e07cac9d15c6ab03fc1ae57bb0 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 2 Aug 2002 15:14:59 +0000 Subject: [PATCH] Added missing _nodePath.clear() and _segHitList.clear() to InteresectVisitor::reset(). --- src/osgUtil/IntersectVisitor.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/osgUtil/IntersectVisitor.cpp b/src/osgUtil/IntersectVisitor.cpp index e6b907c15..4dddf6e30 100644 --- a/src/osgUtil/IntersectVisitor.cpp +++ b/src/osgUtil/IntersectVisitor.cpp @@ -155,9 +155,10 @@ void IntersectVisitor::reset() _intersectStateStack.clear(); // create a empty IntersectState on the the intersectStateStack. - IntersectState* nis = osgNew IntersectState; + _intersectStateStack.push_back(osgNew IntersectState); - _intersectStateStack.push_back(nis); + _nodePath.clear(); + _segHitList.clear(); }