Reset: model placement can drop OSG nodes.

This commit is contained in:
James Turner
2013-10-09 09:59:33 +02:00
parent aa3458f69c
commit 1099a3bdf0
2 changed files with 8 additions and 1 deletions
+6
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()
{
+2 -1
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(); }