From 40f2478b777f0e654289685607a0838d9c769316 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 6 Nov 2009 16:09:16 +0000 Subject: [PATCH] Fixed build --- 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 605b420e3..6efaf1198 100644 --- a/examples/osganimationhardware/osganimationhardware.cpp +++ b/examples/osganimationhardware/osganimationhardware.cpp @@ -124,7 +124,7 @@ struct SetupRigGeometry : public osg::NodeVisitor void apply(osg::Geode& geode) { - for (int i = 0; i < geode.getNumDrawables(); i++) + for (unsigned int i = 0; i < geode.getNumDrawables(); i++) apply(*geode.getDrawable(i)); } void apply(osg::Drawable& geom) @@ -221,7 +221,7 @@ int main (int argc, char* argv[]) // add the screen capture handler viewer.addEventHandler(new osgViewer::ScreenCaptureHandler); - viewer.setSceneData(scene); + viewer.setSceneData(scene.get()); viewer.realize(); @@ -235,7 +235,7 @@ int main (int argc, char* argv[]) tr->setMatrix(osg::Matrix::translate( 2 * (i - xChar * .5), 0, 2 * (j - yChar * .5))); - tr->addChild(c); + tr->addChild(c.get()); scene->addChild(tr); } }