]> git.mxchange.org Git - flightgear.git/commitdiff
Allow disabling embedded nasal (load/unload scripts).
authorThomas Geymayer <tomgey@gmail.com>
Sun, 10 Nov 2013 22:30:32 +0000 (23:30 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Sun, 10 Nov 2013 22:32:47 +0000 (23:32 +0100)
src/Scripting/NasalModelData.cxx

index 15bbf37ee723d4f2dfec1abb89b675407dab39d3..8d20d6e6699dbd1a5b18139a11213ffaa26e1209 100644 (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;