Restored the legacy behavior: the XML extension is mandatory and when it is not explicitely specified it is automatically added.
This commit is contained in:
parent
6e44fb1015
commit
40be2687f7
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ Element_ptr FGModelLoader::Open(Element *el)
|
|||
SGPath CheckPathName(const SGPath& path, const SGPath& filename) {
|
||||
SGPath fullName = path/filename.utf8Str();
|
||||
|
||||
if (fullName.extension().empty())
|
||||
if (fullName.extension() != "xml")
|
||||
fullName.concat(".xml");
|
||||
|
||||
return fullName.exists() ? fullName : SGPath();
|
||||
|
|
Loading…
Reference in a new issue