From bae83fc69d93c93fe620ab355adf89b5bd4f9d03 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 21 Jan 2008 14:42:52 +0000 Subject: [PATCH] From Drederic Bouvier, "I noticed the AC3D loader resets database path given as Options, preventing users to put textures in another directory. This patch adds the model path to the path list instead of replacing it." --- src/osgPlugins/ac/ac3d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgPlugins/ac/ac3d.cpp b/src/osgPlugins/ac/ac3d.cpp index 109706c44..79bebba90 100644 --- a/src/osgPlugins/ac/ac3d.cpp +++ b/src/osgPlugins/ac/ac3d.cpp @@ -98,7 +98,7 @@ class ReaderWriterAC : public osgDB::ReaderWriter local_opt = static_cast(options->clone(osg::CopyOp::DEEP_COPY_ALL)); else local_opt = new Options; - local_opt->setDatabasePath(osgDB::getFilePath(fileName)); + local_opt->getDatabasePathList().push_back(osgDB::getFilePath(fileName)); ReadResult result = readNode(fin, local_opt.get()); if (result.validNode())