1
0
Fork 0

Reset: given FGScenery a shutdown method.

Forces OSG branch references to be dropped.
This commit is contained in:
James Turner 2013-10-06 17:33:09 +01:00
parent a488086d30
commit 06db85f42b
2 changed files with 11 additions and 0 deletions

View file

@ -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)
{

View file

@ -61,6 +61,7 @@ public:
// Implementation of SGSubsystem.
void init ();
void shutdown ();
void bind ();
void unbind ();
void update (double dt);