Changeset 12933

Show
Ignore:
Timestamp:
02/01/12 18:16:44 (2 years ago)
Author:
robert
Message:

Renamed selection to transform to make it clear to understand what is being done.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgmanipulator/osgmanipulator.cpp

    r12932 r12933  
    216216    scene->getOrCreateStateSet()->setMode(GL_NORMALIZE, osg::StateAttribute::ON); 
    217217 
    218     osg::MatrixTransform* selection = new osg::MatrixTransform; 
    219     selection->addChild(scene); 
     218    osg::MatrixTransform* transform = new osg::MatrixTransform; 
     219    transform->addChild(scene); 
    220220 
    221221    osgManipulator::Dragger* dragger = createDragger(name); 
    222222 
    223223    osg::Group* root = new osg::Group; 
    224     root->addChild(selection); 
     224    root->addChild(transform); 
    225225 
    226226    if ( fixedSizeInScreen ) 
     
    239239    if (dynamic_cast<osgManipulator::TabPlaneDragger*>(dragger)) 
    240240    { 
    241         dragger->addTransformUpdating(selection, osgManipulator::DraggerTransformCallback::HANDLE_TRANSLATE_IN_LINE); 
     241        dragger->addTransformUpdating(transform, osgManipulator::DraggerTransformCallback::HANDLE_TRANSLATE_IN_LINE); 
    242242    } 
    243243    else 
    244244    { 
    245         dragger->addTransformUpdating(selection); 
     245        dragger->addTransformUpdating(transform); 
    246246    } 
    247247