{
int clipDepth = 1;
// If we had a graphic or group, clip the depths for all children.
if (node instanceof GroupNode)
{
GroupNode group = (GroupNode)node;
if (group.children != null)
clipDepth = getSpriteDepth(parentSprite) + group.children.size();
}
else if (node instanceof GraphicNode)
{