ModelRegistry: Special case empty file names

Related to ticket:
https://sourceforge.net/p/flightgear/codetickets/2609/
next
James Turner 3 years ago
parent 999e499ce5
commit 5f334d3839

@ -733,6 +733,10 @@ ReaderWriter::ReadResult
ModelRegistry::readNode(const string& fileName,
const Options* opt)
{
if (fileName.empty()) {
return osgDB::ReaderWriter::ReadResult::FILE_NOT_HANDLED;
}
// propogate error context from the caller
simgear::ErrorReportContext ec;
auto sgopt = dynamic_cast<const SGReaderWriterOptions*>(opt);

Loading…
Cancel
Save