From c991e33796c495169d0d854cb663a1123e4f0fc9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 2 Oct 2006 13:07:50 +0000 Subject: [PATCH] From Andreas Ekstrand, "Attached is a small bug fix in the DW plugin. The texture application matrix is read into a double matrix called mx, it was declared as 3x2, it's now fixed to 3x3." --- src/osgPlugins/dw/ReaderWriterDW.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgPlugins/dw/ReaderWriterDW.cpp b/src/osgPlugins/dw/ReaderWriterDW.cpp index 797629fbe..881123dc0 100644 --- a/src/osgPlugins/dw/ReaderWriterDW.cpp +++ b/src/osgPlugins/dw/ReaderWriterDW.cpp @@ -932,7 +932,7 @@ class ReaderWriterDW : public osgDB::ReaderWriter //nrecs=0; // a numVerts is followed by nv vetex postiions if (nexpected>0) obj.readOpenings(fp, nexpected); } else if( strncmp(buff,"UVW:",4)==0) { // texture application matrix - double mx[3][2]; + double mx[3][3]; sscanf(buff+4,"%lf %lf %lf %lf %lf %lf %lf %lf %lf", &mx[0][0], &mx[0][1], &mx[0][2], &mx[1][0], &mx[1][1], &mx[1][2],