OSDN Git Service

fixed number of faces
authornomeu <nomeu@72ae2088-5f33-de11-a17b-0000e250a282>
Mon, 19 Sep 2011 13:08:48 +0000 (13:08 +0000)
committernomeu <nomeu@72ae2088-5f33-de11-a17b-0000e250a282>
Mon, 19 Sep 2011 13:08:48 +0000 (13:08 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/tdcgexplorer/trunk/tso2mqo@2033 72ae2088-5f33-de11-a17b-0000e250a282

MqoWriter.cs

index 95fb388..766630f 100644 (file)
@@ -209,7 +209,7 @@ namespace Tso2MqoGui
                 tw.WriteLine(" }");\r
 \r
                 //\r
-                tw.WriteLine(" face {0} {{", face.Count);\r
+                tw.WriteLine(" face {0} {{", face.Count / 3);\r
 \r
                 System.Diagnostics.Debug.Assert(face.Count*2 == uv.Count);\r
                 System.Diagnostics.Debug.Assert(face.Count == mtl.Count * 3);\r