Model XML: pass the model path to osgDB::Options

To allow giving better error feedback in the AC3D loader, pass the
file path explicitly as a plugin data string, so we can report it.
This commit is contained in:
James Turner 2022-09-09 12:17:11 +01:00
parent 272399e833
commit 423fd4e842

View File

@ -592,6 +592,8 @@ sgLoad3DModel_internal(const SGPath& path,
texturepath = texturepath.dir();
options->setDatabasePath(texturepath.utf8Str());
options->setPluginStringData("filePath", modelpath.utf8Str());
osgDB::ReaderWriter::ReadResult modelResult;
modelResult = osgDB::readRefNodeFile(modelpath.utf8Str(), options.get());