From Mathias Froehlich, "attached is a change to TexGenNode rev 10060 that removes a private member

variable that is only initialized and copied by never used seriously.
"
This commit is contained in:
Robert Osfield 2009-04-22 13:07:02 +00:00
parent 02b84e931e
commit 777b00353a
3 changed files with 1 additions and 4 deletions

View File

@ -68,7 +68,6 @@ class OSG_EXPORT TexGenNode : public Group
virtual ~TexGenNode();
unsigned int _textureUnit;
StateAttribute::GLModeValue _value;
osg::ref_ptr<TexGen> _texgen;
ReferenceFrame _referenceFrame;

View File

@ -21,7 +21,6 @@ TexGenNode::TexGenNode():
setCullingActive(false);
_textureUnit = 0;
_value = StateAttribute::ON;
setStateSet(new StateSet);
_texgen = new TexGen;
}
@ -29,7 +28,6 @@ TexGenNode::TexGenNode():
TexGenNode::TexGenNode(const TexGenNode& cn, const CopyOp& copyop):
Group(cn,copyop),
_textureUnit(cn._textureUnit),
_value(cn._value),
_texgen(static_cast<TexGen*>(copyop(cn._texgen.get()))),
_referenceFrame(cn._referenceFrame)
{
@ -43,7 +41,6 @@ TexGenNode::TexGenNode(TexGen *texgen):
setCullingActive(false);
_textureUnit = 0;
_value = StateAttribute::ON;
setStateSet(new StateSet);
_texgen = texgen;
}

View File

@ -37,6 +37,7 @@ BEGIN_ENUM_REFLECTOR(osgViewer::GraphicsWindow::MouseCursor)
I_EnumLabel(osgViewer::GraphicsWindow::WaitCursor);
I_EnumLabel(osgViewer::GraphicsWindow::TextCursor);
I_EnumLabel(osgViewer::GraphicsWindow::CrosshairCursor);
I_EnumLabel(osgViewer::GraphicsWindow::HandCursor);
I_EnumLabel(osgViewer::GraphicsWindow::UpDownCursor);
I_EnumLabel(osgViewer::GraphicsWindow::LeftRightCursor);
I_EnumLabel(osgViewer::GraphicsWindow::TopSideCursor);