• R/O
  • SSH
  • HTTPS

mmdx: Commit


Commit MetaInfo

Revision839 (tree)
Zeit2011-06-10 00:06:51
Autorwilfrem

Log Message

箱コンパイル通ったとこまで。まだ動かない。

Ändern Zusammenfassung

Diff

--- branches/XNA4/MikuMikuDanceXNA/Model/MMDXModel.cs (revision 838)
+++ branches/XNA4/MikuMikuDanceXNA/Model/MMDXModel.cs (revision 839)
@@ -49,7 +49,7 @@
4949 System.Threading.Tasks.Parallel.ForEach(Parts, (part) => part.SetSkinMatrix(skinTransforms));
5050 #else
5151 foreach (var part in Parts)
52- part.SetSkinMatrix(BoneManager.SkinTransforms);
52+ part.SetSkinMatrix(skinTransforms);
5353 #endif
5454
5555 }
--- branches/XNA4/MikuMikuDanceCore/Model/MMDFaceManager.cs (revision 838)
+++ branches/XNA4/MikuMikuDanceCore/Model/MMDFaceManager.cs (revision 839)
@@ -8,7 +8,9 @@
88 using SlimDX;
99 #endif
1010 using MikuMikuDance.Core.Misc;
11+#if !XBOX
1112 using System.Threading.Tasks;
13+#endif
1214
1315 namespace MikuMikuDance.Core.Model
1416 {
@@ -98,7 +100,11 @@
98100 /// </summary>
99101 /// <param name="vert">頂点</param>
100102 /// <param name="indices">PMDとMMDとの頂点変換マップ</param>
101- public void ApplyToVertex(MMDVertex[] vert, int[] indices = null)
103+ public void ApplyToVertex(MMDVertex[] vert, int[] indices
104+#if !XBOX
105+ = null
106+#endif
107+ )
102108 {
103109 if (indices == null)
104110 {
@@ -105,20 +111,18 @@
105111 #if !XBOX
106112 Parallel.For(0, vert.LongLength, (index) =>
107113 #else
108- foreach(var it in vertData)
114+ for (int index = 0; index < vert.Length; index++ )
109115 #endif
110116 {
111- if (vertData.ContainsKey(index))
117+ //baseで初期化
118+ vert[index].Position = vertData[index][0].vector;
119+ for (int j = 1; j < vertData[index].Length; ++j)
112120 {
113- //baseで初期化
114- vert[index].Position = vertData[index][0].vector;
115- for (int j = 1; j < vertData[index].Length; ++j)
116- {
117- Vector3 temp;
118- Vector3.Multiply(ref vertData[index][j].vector, FaceRates[vertData[index][j].FaceName], out temp);
119- vert[index].Position += temp;
120- }
121+ Vector3 temp;
122+ Vector3.Multiply(ref vertData[index][j].vector, FaceRates[vertData[index][j].FaceName], out temp);
123+ vert[index].Position += temp;
121124 }
125+
122126 }
123127 #if !XBOX
124128 );
@@ -129,7 +133,7 @@
129133 #if !XBOX
130134 Parallel.For(0,vert.LongLength, (i) =>
131135 #else
132- foreach(var it in vertData)
136+ for (int i = 0; i < vert.Length; ++i )
133137 #endif
134138 {
135139 long index = indices[i];
--- branches/XNA4/MikuMikuDanceCore/Motion/MMDMotionFactory.cs (revision 838)
+++ branches/XNA4/MikuMikuDanceCore/Motion/MMDMotionFactory.cs (revision 839)
@@ -2,7 +2,9 @@
22 using System.Collections.Generic;
33 using System.Linq;
44 using System.Text;
5+#if !XBOX
56 using MikuMikuDance.Motion;
7+#endif
68 using System.IO;
79 using MikuMikuDance.Core.Misc;
810 #if XNA
@@ -13,6 +15,7 @@
1315
1416 namespace MikuMikuDance.Core.Motion
1517 {
18+#if !XBOX
1619 class MMDMotionFactory : IMMDMotionFactory
1720 {
1821
@@ -94,4 +97,5 @@
9497
9598 #endregion
9699 }
100+#endif
97101 }
--- branches/XNA4/MikuMikuDanceCore/Accessory/MMDVACFactory.cs (revision 838)
+++ branches/XNA4/MikuMikuDanceCore/Accessory/MMDVACFactory.cs (revision 839)
@@ -12,6 +12,7 @@
1212
1313 namespace MikuMikuDance.Core.Accessory
1414 {
15+#if !XBOX
1516 class MMDVACFactory : IMMDVACFactory
1617 {
1718 #region IMMDVACFactory メンバー
@@ -68,4 +69,5 @@
6869
6970 #endregion
7071 }
72+#endif
7173 }
Show on old repository browser