瀏覽代碼

fixed bug where loading a thread would set changesmade to true

Jonathan Higgins 5 月之前
父節點
當前提交
79fd4a05ec
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      scenes/main/scripts/save_load.gd

+ 2 - 2
scenes/main/scripts/save_load.gd

@@ -106,8 +106,6 @@ func save_graph_edit(path: String):
 	control_script.changesmade = false
 	control_script.changesmade = false
 	get_window().title = "SoundThread - " + path.get_file().trim_suffix(".thd")
 	get_window().title = "SoundThread - " + path.get_file().trim_suffix(".thd")
 	
 	
-	print("thread saved, changes made =")
-	print(control_script.changesmade)
 
 
 func load_graph_edit(path: String):
 func load_graph_edit(path: String):
 	var file = FileAccess.open(path, FileAccess.READ)
 	var file = FileAccess.open(path, FileAccess.READ)
@@ -212,4 +210,6 @@ func load_graph_edit(path: String):
 	print("Graph loaded.")
 	print("Graph loaded.")
 	get_window().title = "SoundThread - " + path.get_file().trim_suffix(".thd")
 	get_window().title = "SoundThread - " + path.get_file().trim_suffix(".thd")
 	
 	
+	control_script.changesmade = false
+