Clean up getDrawable() method

This commit is contained in:
Robert Osfield
2007-02-06 14:20:04 +00:00
parent 4f441771f0
commit 424bc9b997

View File

@@ -78,12 +78,10 @@ class OSGUTIL_EXPORT RenderLeaf : public osg::Referenced
#if 1
osg::Drawable* _drawable;
osg::Drawable* getDrawable() { return _drawable; }
osg::Drawable* getDrawable() const { return _drawable; }
const osg::Drawable* getDrawable() const { return _drawable; }
#else
osg::ref_ptr<osg::Drawable> _drawable;
osg::Drawable* getDrawable() { return _drawable.get(); }
osg::Drawable* getDrawable() const { return _drawable.get(); }
const osg::Drawable* getDrawable() const { return _drawable.get(); }
#endif
osg::ref_ptr<osg::RefMatrix> _projection;
osg::ref_ptr<osg::RefMatrix> _modelview;