From 13d5b50bcf4b4609e9ff925f954e79e0427ce03b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 2 Mar 2004 20:05:43 +0000 Subject: [PATCH] From Marco Jez, fix to circular reference which was causing a crash. --- src/osgFX/BumpMapping.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osgFX/BumpMapping.cpp b/src/osgFX/BumpMapping.cpp index 50f700eae..166e1a5f5 100644 --- a/src/osgFX/BumpMapping.cpp +++ b/src/osgFX/BumpMapping.cpp @@ -41,7 +41,7 @@ namespace NodeVisitor::apply(geode); } private: - osg::ref_ptr bm_; + BumpMapping *bm_; }; @@ -600,8 +600,8 @@ void BumpMapping::prepareGeometry(osg::Geometry *geo) void BumpMapping::prepareNode(osg::Node *node) { - TsgVisitor tv(this); - node->accept(tv); + osg::ref_ptr tv = new TsgVisitor(this); + node->accept(*tv.get()); } void BumpMapping::prepareChildren()