Compare commits

..

No commits in common. "bed153b5f82f67863ef5472f31e8ac4abfe2a995" and "0d942dc86497c8528f549b0dfad349b731cfa4f9" have entirely different histories.

View File

@ -224,10 +224,10 @@ def loads(wif_file):
draft["warp"]["defaultColour"] = draft["colours"][0]
for x in threading:
shaft = threading[x].strip()
shaft = threading[x]
if "," in shaft:
shaft = shaft.split(",")[0]
shaft = int(shaft) if shaft else 0
shaft = int(shaft)
while int(x) >= len(draft["warp"]["threading"]) - 1:
draft["warp"]["threading"].append({"shaft": 0})
draft["warp"]["threading"][int(x) - 1] = {"shaft": shaft}