Fixed clone(CopyOp&) and cloneType() methods which were out of sync with the
new style clone operations.
This commit is contained in:
@@ -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"; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user