Added back in handling of non seam children in seam subgraphs, now uses

a seperate group to enclose both the seam and the non seam children.
This commit is contained in:
Robert Osfield
2004-01-22 11:33:40 +00:00
parent 9801bb5cfc
commit a5dd1951fc

View File

@@ -344,13 +344,21 @@ osg::Node* SeamFinder::seamReplacement(osg::Node* node)
seam->addChild(hiRes->getChild(0)); // high res
}
if (nonSeamChildren.size())
if (nonSeamChildren.empty())
{
std::cout<<"Alert *** need to place in a seperate osg::Group NOT the TXPSeamLOD"<<std::endl;
for (unsigned int i = 0; i < nonSeamChildren.size(); i++)
seam->addChild(nonSeamChildren[i]);
return seam;
}
else
{
osg::Group* newGroup = new osg::Group;
newGroup->addChild(seam);
for (unsigned int i = 0; i < nonSeamChildren.size(); i++)
newGroup->addChild(nonSeamChildren[i]);
return newGroup;
}
return seam;
}
return node;