Reset: model placement can drop OSG nodes.

This commit is contained in:
James Turner 2013-10-06 19:07:54 +02:00
parent aa3458f69c
commit 1099a3bdf0
2 changed files with 8 additions and 1 deletions

View File

@ -44,6 +44,12 @@ SGModelPlacement::init( osg::Node * model )
_selector->setValue(0, 1);
}
void SGModelPlacement::clear()
{
_selector = NULL;
_transform = NULL;
}
void
SGModelPlacement::update()
{

View File

@ -42,7 +42,8 @@ public:
virtual ~SGModelPlacement ();
virtual void init( osg::Node* model );
void clear();
virtual void update();
virtual osg::Node* getSceneGraph () { return _selector.get(); }