From 5b978813c320b3c21d6a24527592d3afc01d66fe Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 30 Jan 2002 19:59:36 +0000 Subject: [PATCH] Fixed clone(CopyOp&) and cloneType() methods which were out of sync with the new style clone operations. --- include/osgUtil/DepthSortedBin | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/osgUtil/DepthSortedBin b/include/osgUtil/DepthSortedBin index 45d75ae84..bd565360e 100644 --- a/include/osgUtil/DepthSortedBin +++ b/include/osgUtil/DepthSortedBin @@ -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(obj)!=0L; } virtual const char* className() const { return "DepthSortedBin"; }