From Jason Daly, fix for long file names on sequence nodes.

This commit is contained in:
Robert Osfield
2002-11-14 15:30:28 +00:00
parent 0980eeda1e
commit b89e7282ed

View File

@@ -561,7 +561,10 @@ osg::Group* ConvertFromFLT::visitGroup(osg::Group& osgParent, GroupRecord* rec)
else
animSeq->setInterval(osg::Sequence::SWING, 0, -1);
animSeq->setName(rec->getData()->szIdent);
// Only set the name from the normal record ID if the visitAncillary()
// call didn't find a Long ID record on this group
if (animSeq->getName().length() == 0)
animSeq->setName(rec->getData()->szIdent);
return animSeq;
}