Reset: model placement can drop OSG nodes.
This commit is contained in:
parent
aa3458f69c
commit
1099a3bdf0
@ -44,6 +44,12 @@ SGModelPlacement::init( osg::Node * model )
|
||||
_selector->setValue(0, 1);
|
||||
}
|
||||
|
||||
void SGModelPlacement::clear()
|
||||
{
|
||||
_selector = NULL;
|
||||
_transform = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
SGModelPlacement::update()
|
||||
{
|
||||
|
@ -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(); }
|
||||
|
Loading…
Reference in New Issue
Block a user