#include "NasalModelData.hxx"
#include "NasalSys.hxx"
+#include <Main/fg_props.hxx>
#include <Main/globals.hxx>
#include <simgear/math/SGMath.hxx>
nasal::Hash module = nasalSys->getGlobals().createHash(_module);
module.set("_module_id", _module_id);
- if( !NasalNode::isInit() )
- {
- NasalNode::init("osg.Node")
+ NasalNode::init("osg.Node")
.method("getPose", &f_node_getPose);
- }
-
module.set("_model", _branch);
naRef arg[2];
SGPropertyNode *prop,
osg::Node *branch )
{
+ if( fgGetBool("/sim/disable-embedded-nasal") )
+ return;
+
if(!prop)
return;