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
This commit is contained in:
parent
539c1891d3
commit
c8de2cd08b
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue