diff --git a/src/Demos/osgconv/OrientationConverter.cpp b/src/Demos/osgconv/OrientationConverter.cpp index 9f3a486a9..fa4a1a4cb 100644 --- a/src/Demos/osgconv/OrientationConverter.cpp +++ b/src/Demos/osgconv/OrientationConverter.cpp @@ -57,7 +57,7 @@ Node* OrientationConverter::convert( Node *node ) transform->addChild(node); osgUtil::Optimizer::FlattenStaticTransformsVisitor fstv; - node->accept(fstv); + root->accept(fstv); fstv.removeTransforms(); return root->getChild(0);