Fix PagedLOD::addChild(,,) so that they allocate the correct size of range data.
This commit is contained in:
@@ -14,8 +14,12 @@
|
||||
|
||||
using namespace osg;
|
||||
|
||||
TexGenNode::TexGenNode()
|
||||
TexGenNode::TexGenNode():
|
||||
_referenceFrame(RELATIVE_RF)
|
||||
{
|
||||
// switch off culling of tex gen nodes by default.
|
||||
setCullingActive(false);
|
||||
|
||||
_textureUnit = 0;
|
||||
_value = StateAttribute::ON;
|
||||
_stateset = new StateSet;
|
||||
@@ -26,7 +30,8 @@ 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())))
|
||||
_texgen(static_cast<TexGen*>(copyop(cn._texgen.get()))),
|
||||
_referenceFrame(cn._referenceFrame)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -42,6 +47,11 @@ TexGenNode::~TexGenNode()
|
||||
{
|
||||
}
|
||||
|
||||
void TexGenNode::setReferenceFrame(ReferenceFrame rf)
|
||||
{
|
||||
_referenceFrame = rf;
|
||||
}
|
||||
|
||||
void TexGenNode::setTexGen(TexGen* texgen)
|
||||
{
|
||||
_texgen = texgen;
|
||||
|
||||
Reference in New Issue
Block a user