From: mfranz Date: Fri, 17 Oct 2008 21:25:03 +0000 (+0000) Subject: set /sim/rendering/particles as global particle switch X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=76b609738fc860118f3409348e586d5ce3ca9ce0;p=flightgear.git set /sim/rendering/particles as global particle switch --- diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 9e21c719f..a23532db1 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -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.