From 0926bb783d208bf84b1a8130d620dd2d39cc65d8 Mon Sep 17 00:00:00 2001 From: Julien Valentin Date: Thu, 31 Aug 2017 13:29:42 +0200 Subject: [PATCH] fix example --- examples/osganimationhardware/osganimationhardware.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/osganimationhardware/osganimationhardware.cpp b/examples/osganimationhardware/osganimationhardware.cpp index 4c65644a8..acc2bf2f8 100644 --- a/examples/osganimationhardware/osganimationhardware.cpp +++ b/examples/osganimationhardware/osganimationhardware.cpp @@ -42,12 +42,12 @@ static unsigned int getRandomValueinRange(unsigned int v) } -osg::ref_ptr program; +//osg::ref_ptr program; // show how to override the default RigTransformHardware for customized usage struct MyRigTransformHardware : public osgAnimation::RigTransformHardware { - virtual bool prepareData(osgAnimation::RigGeometry& rig) + virtual bool init(osgAnimation::RigGeometry& rig) { if(!rig.getSkeleton() && !rig.getParents().empty()) { @@ -81,7 +81,7 @@ struct MyRigTransformHardware : public osgAnimation::RigTransformHardware // copy shallow from source geometry to rig rig.copyFrom(source); - // osg::ref_ptr program ; + osg::ref_ptr program ; osg::ref_ptr vertexshader; osg::ref_ptr stateset = rig.getOrCreateStateSet();