Allow disabling embedded nasal (load/unload scripts).
This commit is contained in:
parent
af6131b556
commit
accdf97785
1 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
#include "NasalModelData.hxx"
|
#include "NasalModelData.hxx"
|
||||||
#include "NasalSys.hxx"
|
#include "NasalSys.hxx"
|
||||||
|
#include <Main/fg_props.hxx>
|
||||||
#include <Main/globals.hxx>
|
#include <Main/globals.hxx>
|
||||||
|
|
||||||
#include <simgear/math/SGMath.hxx>
|
#include <simgear/math/SGMath.hxx>
|
||||||
|
@ -197,6 +198,9 @@ void FGNasalModelDataProxy::modelLoaded( const std::string& path,
|
||||||
SGPropertyNode *prop,
|
SGPropertyNode *prop,
|
||||||
osg::Node *branch )
|
osg::Node *branch )
|
||||||
{
|
{
|
||||||
|
if( fgGetBool("/sim/disable-embedded-nasal") )
|
||||||
|
return;
|
||||||
|
|
||||||
if(!prop)
|
if(!prop)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue