]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scripting/NasalModelData.cxx
Remove debug console output in FGApproachController
[flightgear.git] / src / Scripting / NasalModelData.cxx
index 8d20d6e6699dbd1a5b18139a11213ffaa26e1209..e4f22692ba399d6c64fbbce248dc9e759fadbcce 100644 (file)
@@ -4,14 +4,15 @@
 #include <Main/fg_props.hxx>
 #include <Main/globals.hxx>
 
+#include <osg/Transform>
+#include <osg/observer_ptr>
+
 #include <simgear/math/SGMath.hxx>
 #include <simgear/nasal/cppbind/Ghost.hxx>
 #include <simgear/scene/util/OsgDebug.hxx>
 #include <simgear/scene/util/OsgMath.hxx>
 #include <simgear/debug/logstream.hxx>
 
-#include <osg/Transform>
-
 #include <boost/bind.hpp>
 
 #include <algorithm>
@@ -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];