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."

This commit is contained in:
Robert Osfield 2011-02-14 15:59:49 +00:00
parent ad165145de
commit 37cc59fe07

View File

@ -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<Options*>(clone(osg::CopyOp::SHALLOW_COPY)); }
/** Set the general Options string.*/
void setOptionString(const std::string& str) { _str = str; parsePluginStringData(str); }