Clean up getDrawable() method
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user