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:
parent
ad165145de
commit
37cc59fe07
@ -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); }
|
||||
|
Loading…
Reference in New Issue
Block a user