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.
next
James Turner 2 years ago
parent 272399e833
commit 423fd4e842

@ -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());

Loading…
Cancel
Save