Skip to content

Commit a5f6eec

Browse files
Error check
1 parent 4a6d63a commit a5f6eec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/file_io.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ func _on_process_finished(exit_code: int, output: Array):
277277
print("exit code: ", exit_code)
278278
if output.size() > 0:
279279
print("Output:\n", output[0])
280-
if FileAccess.file_exists("Archicrop.obj"): # Display result in seperate window
280+
if exit_code==0 and FileAccess.file_exists("Archicrop.obj"): # Display result in seperate window
281281
var load_thread = Thread.new()
282282
var thread_callable = _load_window_background.bind()
283283
load_thread.start(thread_callable)

0 commit comments

Comments
 (0)