]> git.mxchange.org Git - flightgear.git/commitdiff
set /sim/rendering/particles as global particle switch
authormfranz <mfranz>
Fri, 17 Oct 2008 21:25:03 +0000 (21:25 +0000)
committermfranz <mfranz>
Fri, 17 Oct 2008 21:25:03 +0000 (21:25 +0000)
src/Main/fg_init.cxx

index 9e21c719f1920c5781a0cfdbc2bace13156bcb5c..a23532db1a6cbc04663598813faaaf608e4f618c 100644 (file)
@@ -1494,6 +1494,7 @@ bool fgInitSubsystems() {
 
     globals->get_scenery()->get_scene_graph()
         ->addChild(simgear::Particles::getCommonRoot());
+    simgear::GlobalParticleCallback::setSwitch(fgGetNode("/sim/rendering/particles", true));
 
     ////////////////////////////////////////////////////////////////////
     // Initialize the flight model subsystem.