From c8de2cd08ba501def5e33661729b1f0b7d17def6 Mon Sep 17 00:00:00 2001 From: mfranz Date: Mon, 1 Oct 2007 15:59:24 +0000 Subject: [PATCH] if a local (ai/mp) root node is given, append it to the module name, so that one instance doesn't destroy the namespace of all other instances --- src/Scripting/NasalSys.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index 9b78f8081..da88fbf13 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -925,6 +925,8 @@ void FGNasalModelData::modelLoaded(const string& path, SGPropertyNode *prop, return; _module = path; + if(_props) + _module += ':' + _props->getPath(); const char *s = load ? load->getStringValue() : ""; nasalSys->createModule(_module.c_str(), _module.c_str(), s, strlen(s), _props); } -- 2.39.5