Reset: given FGScenery a shutdown method.
Forces OSG branch references to be dropped.
This commit is contained in:
parent
a488086d30
commit
06db85f42b
2 changed files with 11 additions and 0 deletions
|
@ -269,6 +269,16 @@ void FGScenery::init() {
|
|||
sgUserDataInit( globals->get_props() );
|
||||
}
|
||||
|
||||
void FGScenery::shutdown()
|
||||
{
|
||||
sgUserDataInit( NULL );
|
||||
|
||||
scene_graph = NULL;
|
||||
terrain_branch = NULL;
|
||||
models_branch = NULL;
|
||||
aircraft_branch = NULL;
|
||||
}
|
||||
|
||||
|
||||
void FGScenery::update(double dt)
|
||||
{
|
||||
|
|
|
@ -61,6 +61,7 @@ public:
|
|||
|
||||
// Implementation of SGSubsystem.
|
||||
void init ();
|
||||
void shutdown ();
|
||||
void bind ();
|
||||
void unbind ();
|
||||
void update (double dt);
|
||||
|
|
Loading…
Add table
Reference in a new issue