]> git.mxchange.org Git - flightgear.git/commitdiff
Prevention of the creation of multiple OSG scene graph roots.
authorEdward d'Auvergne <edward@nmr-relax.com>
Tue, 3 May 2016 13:14:53 +0000 (15:14 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 22 Sep 2016 21:27:50 +0000 (23:27 +0200)
As the scenery manager's init() function is called twice on start up, two OSG
scene graph roots would be created.  A number of scene graph branches would be
initalised on the first root, but then be lost as the second is created.  This
fixes the precipitation branch, for example.

src/Scenery/scenery.cxx

index b64c16d5ce92492304e179582069daa8b3e95420..4b6d5f726790b055eba8bf5a2aba3e1b87fafedf 100644 (file)
@@ -358,7 +358,6 @@ void FGScenery::shutdown()
     models_branch = NULL;
     aircraft_branch = NULL;
     particles_branch = NULL;
-    precipitation_branch = NULL;
 
     // Toggle the setup flag.
     _inited = false;