Render order reversed to match component list.

This commit is contained in:
DH4 2017-06-03 19:29:25 -05:00
parent a3557cbc4f
commit e6d119769f
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ class Worker(QtCore.QObject):
frame.paste(im) frame.paste(im)
components = nextPreviewInformation["components"] components = nextPreviewInformation["components"]
for component in components: for component in reversed(components):
newFrame = Image.alpha_composite(frame,component.previewRender(self)) newFrame = Image.alpha_composite(frame,component.previewRender(self))
frame = Image.alpha_composite(frame,newFrame) frame = Image.alpha_composite(frame,newFrame)

View File

@ -43,7 +43,7 @@ class Worker(QtCore.QObject):
else: else:
frame = self.getBackgroundAtIndex(i[1]) frame = self.getBackgroundAtIndex(i[1])
for compNo, comp in enumerate(self.components): for compNo, comp in reversed(list(enumerate(self.components))):
if compNo in self.staticComponents and self.staticComponents[compNo] != None: if compNo in self.staticComponents and self.staticComponents[compNo] != None:
frame = Image.alpha_composite(frame, self.staticComponents[compNo]) frame = Image.alpha_composite(frame, self.staticComponents[compNo])
else: else: