From 37cc59fe078c836092610f0ef3cf8487bf9acc2e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 14 Feb 2011 15:59:49 +0000 Subject: [PATCH] From Tim Moore, "The non-virtual cloneOptions() method, which is now used by DatabasePager, breaks derived classes of osgDB::Options. This patch uses the clone() method to clone Options." --- include/osgDB/Options | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osgDB/Options b/include/osgDB/Options index c68c976d4..5882a1e94 100644 --- a/include/osgDB/Options +++ b/include/osgDB/Options @@ -114,7 +114,7 @@ class OSGDB_EXPORT Options : public osg::Object META_Object(osgDB,Options); - Options* cloneOptions() const { return new Options(*this); } + Options* cloneOptions() const { return static_cast(clone(osg::CopyOp::SHALLOW_COPY)); } /** Set the general Options string.*/ void setOptionString(const std::string& str) { _str = str; parsePluginStringData(str); }