From 0114ac47340326724567b7486d4d19c99863b652 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 6 Dec 2008 11:03:32 +0000 Subject: [PATCH] Fixed build problem --- src/osgPlugins/bvh/ReaderWriterBVH.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgPlugins/bvh/ReaderWriterBVH.cpp b/src/osgPlugins/bvh/ReaderWriterBVH.cpp index 54b57883e..15237d2ad 100644 --- a/src/osgPlugins/bvh/ReaderWriterBVH.cpp +++ b/src/osgPlugins/bvh/ReaderWriterBVH.cpp @@ -79,7 +79,7 @@ public: osg::ref_ptr bone = new osgAnimation::Bone( parent->getName()+"End" ); bone->setBindMatrixInBoneSpace( osg::Matrix::translate(offsetEndSite) ); bone->setDataVariance( osg::Object::DYNAMIC ); - parent->addChild( bone ); + parent->addChild( bone.get() ); if ( _drawingFlag ) parent->addChild( createRefGeometry(offsetEndSite, 0.5).get() ); @@ -98,7 +98,7 @@ public: osgAnimation::AnimationUpdateCallback* cb = dynamic_cast( bone->getUpdateCallback() ); if ( cb ) cb->setName( bone->getName() ); - parent->addChild( bone ); + parent->addChild( bone.get() ); _joints.push_back( JointNode(bone, 0) ); int entry = fr[1].getNoNestedBrackets();