diff --git a/src/Scripting/NasalModelData.cxx b/src/Scripting/NasalModelData.cxx index 15bbf37ee..8d20d6e66 100644 --- a/src/Scripting/NasalModelData.cxx +++ b/src/Scripting/NasalModelData.cxx @@ -1,6 +1,7 @@ #include "NasalModelData.hxx" #include "NasalSys.hxx" +#include
#include
#include @@ -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;