Jelajahi Sumber

fixed import

eLandon 4 tahun lalu
induk
melakukan
4f16c3b9ad
1 mengubah file dengan 7 tambahan dan 7 penghapusan
  1. 7 7
      SequenceMgr.js

+ 7 - 7
SequenceMgr.js

@@ -81,7 +81,7 @@ function init() {
 	// script.log(root.sequences.truc.viewStartTime.get();)
 	saveFile.set("sequence_autosave.json");
 	saveFile.setAttribute("readonly", true);
-	// importSequenceFile(saveFile);
+	importSequenceFile(saveFile);
 	
 	// var audioLayer = root.sequences.truc.layers.audio ;
 	// var newClip = audioLayer.clips.addItem();
@@ -149,12 +149,12 @@ function update(deltaTime){
 			}
 		}	
 
-		// saveDelta += deltaTime ;
-		// if (saveDelta >= saveRatems){
-		// 	saveDelta = 0. ;
-		// 	exportSequenceFile(saveFile);
-		// 	script.log("sequence autosave");
-		// }
+		saveDelta += deltaTime ;
+		if (saveDelta >= saveRatems){
+			saveDelta = 0. ;
+			exportSequenceFile(saveFile);
+			script.log("sequence autosave");
+		}
 
 		followDelta += deltaTime ;
 		if(followCursor && (followDelta>followRatems)){