Completed refactor of osgManipulator, key changes are:
Selection is now just a typedef of osg::MatrixTransform, and is deprecated CommandManager is shell class that just sets values directly on Dragger, and is deprecated Dragger now has list of DraggerCallback that takes over the roll of tracking changes to the Dragger, and allows users to track the dragger in any way they wish. Dragger now has a convinience method making MatrixTransforms track a dragger. Selection and CommandManager are no longer required for use of osgManipulator and are kept around for backwards compatibility.
This commit is contained in:
@@ -114,7 +114,7 @@ osg::Node* addDraggerToScene(osg::Node* scene, osgManipulator::CommandManager* c
|
||||
#ifdef USE_COMMAND_MANAGER
|
||||
cmdMgr->connect(*dragger, *selection);
|
||||
#else
|
||||
dragger->addSelection(selection);
|
||||
dragger->addTransformUpdating(selection);
|
||||
#endif
|
||||
return root;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user