From b89e7282ed05e46ae354f4b3e465b15720a28b63 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 14 Nov 2002 15:30:28 +0000 Subject: [PATCH] From Jason Daly, fix for long file names on sequence nodes. --- src/osgPlugins/flt/flt2osg.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/osgPlugins/flt/flt2osg.cpp b/src/osgPlugins/flt/flt2osg.cpp index 5dc2f75f7..316faad80 100644 --- a/src/osgPlugins/flt/flt2osg.cpp +++ b/src/osgPlugins/flt/flt2osg.cpp @@ -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; }