Fixed clone(CopyOp&) and cloneType() methods which were out of sync with the

new style clone operations.
This commit is contained in:
Robert Osfield
2002-01-30 19:59:36 +00:00
parent 08194e04d6
commit 5b978813c3

View File

@@ -16,7 +16,8 @@ class OSGUTIL_EXPORT DepthSortedBin : public RenderBin
DepthSortedBin();
virtual osg::Object* clone() const { return new DepthSortedBin(); }
virtual osg::Object* cloneType() const { return new DepthSortedBin(); }
virtual osg::Object* clone(const osg::CopyOp&) const { return new DepthSortedBin(); } // note only implements a clone of type.
virtual bool isSameKindAs(const osg::Object* obj) const { return dynamic_cast<const DepthSortedBin*>(obj)!=0L; }
virtual const char* className() const { return "DepthSortedBin"; }