From 7a7322f7b045a8f7db169bfb8166c8bde2ecef29 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 4 Jan 2002 17:34:01 +0000 Subject: [PATCH] Fixed a bug in writing of line strips and line loops to the .osg file. --- src/osgPlugins/osg/GeoSet.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osgPlugins/osg/GeoSet.cpp b/src/osgPlugins/osg/GeoSet.cpp index bf262d796..066a16477 100644 --- a/src/osgPlugins/osg/GeoSet.cpp +++ b/src/osgPlugins/osg/GeoSet.cpp @@ -114,7 +114,7 @@ bool GeoSet_readLocalData(Object& obj, Input& fr) else if (fr.matchSequence("flat_linestrip %i {")) { readPrimitiveLengths = true; - geoset.setPrimType(GeoSet::LINE_STRIP); + geoset.setPrimType(GeoSet::FLAT_LINE_STRIP); } else if (fr.matchSequence("tfans %i {")) { @@ -682,11 +682,11 @@ bool GeoSet_writeLocalData(const Object& obj, Output& fw) break; case (GeoSet::LINE_STRIP): fw.indent()<<"linestrip "<< geoset.getNumPrims() << std::endl; - writeOutPrimitiveLengths = false; + writeOutPrimitiveLengths = true; break; case (GeoSet::FLAT_LINE_STRIP): fw.indent()<<"flat_linestrip "<< geoset.getNumPrims() << std::endl; - writeOutPrimitiveLengths = false; + writeOutPrimitiveLengths = true; break; case (GeoSet::TRIANGLE_FAN): fw.indent()<<"tfans "<< geoset.getNumPrims() << std::endl;