1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-27 17:20:06 +02:00

Workarounds for bugs in the OpenSCAD snapshots.

This commit is contained in:
Chris Palmer
2021-09-12 18:02:43 +01:00
parent 588a1edf62
commit f0c25d37b0
20 changed files with 8632 additions and 8628 deletions

View File

@@ -72,6 +72,8 @@ def update_image(tmp_name, png_name):
if pixels < 0 or pixels > threshold:
shutil.copyfile(tmp_name, png_name)
print(Fore.YELLOW + png_name + " updated" + Fore.WHITE, pixels if pixels > 0 else '')
if png_name.endswith('_tn.png'):
os.remove(diff_name)
else:
os.utime(png_name, None)
os.remove(diff_name)