From: Edward d'Auvergne Date: Tue, 3 May 2016 13:14:53 +0000 (+0200) Subject: Prevention of the creation of multiple OSG scene graph roots. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8ddfe51600d2f940c86116f25471ac27a44783a7;p=flightgear.git Prevention of the creation of multiple OSG scene graph roots. 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. --- diff --git a/src/Scenery/scenery.cxx b/src/Scenery/scenery.cxx index b64c16d5c..4b6d5f726 100644 --- a/src/Scenery/scenery.cxx +++ b/src/Scenery/scenery.cxx @@ -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;