From af29bccf4fd3a369257ccddab7cd032d03342059 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 5 Mar 2008 13:54:52 +0000 Subject: [PATCH] From Andreas Ekstrand and Lars Nilsson, fix for reading Texture Attribute file --- src/osgPlugins/OpenFlight/ReaderWriterATTR.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osgPlugins/OpenFlight/ReaderWriterATTR.cpp b/src/osgPlugins/OpenFlight/ReaderWriterATTR.cpp index e4c8f4f35..ae26f2840 100644 --- a/src/osgPlugins/OpenFlight/ReaderWriterATTR.cpp +++ b/src/osgPlugins/OpenFlight/ReaderWriterATTR.cpp @@ -102,6 +102,7 @@ ReaderWriter::ReadResult ReaderWriterATTR::readObject(const std::string& file, c attr->texEnvMode = in.readInt32(AttrData::TEXENV_MODULATE); attr->intensityAsAlpha = in.readInt32(); in.forward(4*8); + in.forward(4); attr->size_u = in.readFloat64(); attr->size_v = in.readFloat64(); attr->originCode = in.readInt32(); @@ -166,7 +167,7 @@ ReaderWriter::ReadResult ReaderWriterATTR::readObject(const std::string& file, c // v12 ends here // if (in.eof() || (_flt_version <= 12)) return true; - in.forward(13*4); + in.forward(14*4); attr->attrVersion = in.readInt32(); attr->controlPoints = in.readInt32(); in.forward(4);