From accdf97785593046744cebbcdc467b4e52a86ebd Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Sun, 10 Nov 2013 23:30:32 +0100 Subject: [PATCH] Allow disabling embedded nasal (load/unload scripts). --- src/Scripting/NasalModelData.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.5