Fix PagedLOD::addChild(,,) so that they allocate the correct size of range data.

This commit is contained in:
Robert Osfield
2005-07-14 20:32:25 +00:00
parent 0956674292
commit 0e4b263ddb
2 changed files with 14 additions and 4 deletions

View File

@@ -232,7 +232,7 @@ bool PagedLOD::addChild( Node *child )
{
if (LOD::addChild(child))
{
expandPerRangeDataTo(_children.size());
expandPerRangeDataTo(_children.size()-1);
return true;
}
return false;
@@ -242,7 +242,7 @@ bool PagedLOD::addChild(Node *child, float min, float max)
{
if (LOD::addChild(child,min,max))
{
expandPerRangeDataTo(_children.size());
expandPerRangeDataTo(_children.size()-1);
return true;
}
return false;