From 8ddfe51600d2f940c86116f25471ac27a44783a7 Mon Sep 17 00:00:00 2001 From: Edward d'Auvergne Date: Tue, 3 May 2016 15:14:53 +0200 Subject: [PATCH] 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. --- src/Scenery/scenery.cxx | 1 - 1 file changed, 1 deletion(-) 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; -- 2.39.2