Browse Source

"play animation" now pauses the correct number of milliseconds

hutattedonmyarm 12 years ago
parent
commit
f5289349ad
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      CubeControl/Frame.java

+ 7
- 1
CubeControl/Frame.java View File

@@ -562,7 +562,13 @@ public class Frame extends JFrame implements ListSelectionListener {
562 562
 		} else {
563 563
 			for(int i = 0; i < frameList.getModel().getSize(); i++){
564 564
 				frameList.setSelectedIndex(i);
565
-			
565
+				short time1 = worker.getFrameTime(animList.getSelectedIndex(), frameList.getSelectedIndex());
566
+				long time = (long) (((time1+1) * 1/24) * 1000);
567
+				try{
568
+					Thread.sleep(time);
569
+				}catch(Exception e){
570
+					System.out.println(e);
571
+				}
566 572
 			}	
567 573
 		}
568 574
 	

Loading…
Cancel
Save