1
0
Fork 0

Allow disabling embedded nasal (load/unload scripts).

This commit is contained in:
Thomas Geymayer 2013-11-10 23:30:32 +01:00
parent af6131b556
commit accdf97785

View file

@ -1,6 +1,7 @@
#include "NasalModelData.hxx"
#include "NasalSys.hxx"
#include <Main/fg_props.hxx>
#include <Main/globals.hxx>
#include <simgear/math/SGMath.hxx>
@ -197,6 +198,9 @@ void FGNasalModelDataProxy::modelLoaded( const std::string& path,
SGPropertyNode *prop,
osg::Node *branch )
{
if( fgGetBool("/sim/disable-embedded-nasal") )
return;
if(!prop)
return;