Page 1 of 1

TerrainQuadTreeNode::prepare() does nothing

Posted: Sat Jun 21, 2014 3:59 pm
by Vincent
Hi all devs,

maybe I have overseen something, but isn't the TerrainQuadTreeNode::prepare() call in the OgreTerrain.cpp (line 905) pretty useless, because the function does the following:

Code: Select all

void TerrainQuadTreeNode::prepare()
	{
		if (!isLeaf())
		{
			for (int i = 0; i < 4; ++i)
				mChildren[i]->prepare();
		}

	}
Or is there a class derived from TerrainQuadTreeNode which does something usefull in its prepare() function?

Cheers
Vincent

Re: TerrainQuadTreeNode::prepare() does nothing

Posted: Sat Jun 21, 2014 11:00 pm
by c6burns
There's another prepare method right below that one ;D