Browse Source

fixed bug on windows

pull/1/head
Youen Toupin 3 years ago
parent
commit
006e6413ac
  1. 1
      ahb_cmd_render.py

1
ahb_cmd_render.py

@ -200,6 +200,7 @@ class AHB_Render:
bg = Image.new('RGB', resolution, (255,255,255)) bg = Image.new('RGB', resolution, (255,255,255))
if prev_stage_id is not None: if prev_stage_id is not None:
prev_stage = Image.open(dir + "/stages/" + stage_name + "-bg.png") prev_stage = Image.open(dir + "/stages/" + stage_name + "-bg.png")
prev_stage.load()
os.remove(dir + "/stages/" + stage_name + "-bg.png") os.remove(dir + "/stages/" + stage_name + "-bg.png")
bg.paste(prev_stage, None, prev_stage.getchannel('A')) bg.paste(prev_stage, None, prev_stage.getchannel('A'))
fg = Image.open(dir + "/stages/" + stage_name + ".png") fg = Image.open(dir + "/stages/" + stage_name + ".png")

Loading…
Cancel
Save