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:
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…
Reference in New Issue
Block a user