• R/O
  • SSH
  • HTTPS

mmdx: Commit


Commit MetaInfo

Revision890 (tree)
Zeit2011-06-26 15:10:21
Autorwilfrem

Log Message

Ändern Zusammenfassung

Diff

--- trunk/MikuMikuDanceCore/Stages/MMDStageMotionTrack.cs (revision 889)
+++ trunk/MikuMikuDanceCore/Stages/MMDStageMotionTrack.cs (revision 890)
@@ -102,9 +102,15 @@
102102 //カーソル位置の更新
103103 int CursorPos = cameraPos;
104104 if (!bReverse)
105+ {
105106 for (; CursorPos < cameraFrames.Count && cameraFrames[CursorPos].FrameNo < NowFrame; ++CursorPos) ;
107+ for (; CursorPos > 0 && cameraFrames[CursorPos - 1].FrameNo > NowFrame; --CursorPos) ;
108+ }
106109 else
110+ {
107111 for (; CursorPos > 0 && cameraFrames[CursorPos - 1].FrameNo > NowFrame; --CursorPos) ;
112+ for (; CursorPos < cameraFrames.Count && cameraFrames[CursorPos].FrameNo < NowFrame; ++CursorPos) ;
113+ }
108114 cameraPos = CursorPos;
109115 if (!(CursorPos == 0 || CursorPos == cameraFrames.Count))
110116 {
@@ -116,9 +122,15 @@
116122 }
117123 CursorPos = lightPos;
118124 if (!bReverse)
125+ {
119126 for (; CursorPos < lightFrames.Count && lightFrames[CursorPos].FrameNo < NowFrame; ++CursorPos) ;
127+ for (; CursorPos > 0 && lightFrames[CursorPos - 1].FrameNo > NowFrame; --CursorPos) ;
128+ }
120129 else
130+ {
121131 for (; CursorPos > 0 && lightFrames[CursorPos - 1].FrameNo > NowFrame; --CursorPos) ;
132+ for (; CursorPos < lightFrames.Count && lightFrames[CursorPos].FrameNo < NowFrame; ++CursorPos) ;
133+ }
122134 lightPos = CursorPos;
123135 if (!(CursorPos == 0 || CursorPos == lightFrames.Count))
124136 {
Show on old repository browser