From 95f93e3bf53868d6b7a1406c7e80355048f92eb7 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 1 Feb 2012 17:16:44 +0000 Subject: [PATCH] Renamed selection to transform to make it clear to understand what is being done. --- examples/osgmanipulator/osgmanipulator.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/osgmanipulator/osgmanipulator.cpp b/examples/osgmanipulator/osgmanipulator.cpp index a1fe4d21a..52038b40f 100644 --- a/examples/osgmanipulator/osgmanipulator.cpp +++ b/examples/osgmanipulator/osgmanipulator.cpp @@ -215,13 +215,13 @@ osg::Node* addDraggerToScene(osg::Node* scene, const std::string& name, bool fix { scene->getOrCreateStateSet()->setMode(GL_NORMALIZE, osg::StateAttribute::ON); - osg::MatrixTransform* selection = new osg::MatrixTransform; - selection->addChild(scene); + osg::MatrixTransform* transform = new osg::MatrixTransform; + transform->addChild(scene); osgManipulator::Dragger* dragger = createDragger(name); osg::Group* root = new osg::Group; - root->addChild(selection); + root->addChild(transform); if ( fixedSizeInScreen ) { @@ -238,11 +238,11 @@ osg::Node* addDraggerToScene(osg::Node* scene, const std::string& name, bool fix if (dynamic_cast(dragger)) { - dragger->addTransformUpdating(selection, osgManipulator::DraggerTransformCallback::HANDLE_TRANSLATE_IN_LINE); + dragger->addTransformUpdating(transform, osgManipulator::DraggerTransformCallback::HANDLE_TRANSLATE_IN_LINE); } else { - dragger->addTransformUpdating(selection); + dragger->addTransformUpdating(transform); } // we want the dragger to handle it's own events automatically