Fixed rendering preview faild when logs/output empty

This commit is contained in:
2022-06-13 20:27:28 +02:00
parent 179d7f9d7b
commit 0aba2a0de0

View File

@@ -58,11 +58,12 @@ while True:
fps = int(settingsRoot[0].text) fps = int(settingsRoot[0].text)
width = int(settingsRoot[1].text) width = int(settingsRoot[1].text)
StickDistance = _map(int(settingsRoot[2].text), 0, 100, 5, 105) StickDistance = _map(int(settingsRoot[2].text), 0, 100, 5, 105)
logs = settingsRoot[4].text[1:][:-1].split("\"\"")
output = settingsRoot[5].text
if(command == "startRendering"): if(command == "startRendering"):
logs = settingsRoot[4].text[1:][:-1].split("\"\"")
output = settingsRoot[5].text
logCount = len(logs) logCount = len(logs)
logNumber = 1 logNumber = 1