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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user