X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FScripting%2FNasalModelData.cxx;h=e4f22692ba399d6c64fbbce248dc9e759fadbcce;hb=9c63b7713307eb4db9f6df7959fe83977f561c42;hp=8d20d6e6699dbd1a5b18139a11213ffaa26e1209;hpb=accdf97785593046744cebbcdc467b4e52a86ebd;p=flightgear.git diff --git a/src/Scripting/NasalModelData.cxx b/src/Scripting/NasalModelData.cxx index 8d20d6e66..e4f22692b 100644 --- a/src/Scripting/NasalModelData.cxx +++ b/src/Scripting/NasalModelData.cxx @@ -4,14 +4,15 @@ #include
#include
+#include +#include + #include #include #include #include #include -#include - #include #include @@ -122,12 +123,8 @@ void FGNasalModelData::load() 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];