Render order reversed to match component list.
This commit is contained in:
parent
a3557cbc4f
commit
e6d119769f
|
@ -56,7 +56,7 @@ class Worker(QtCore.QObject):
|
|||
frame.paste(im)
|
||||
|
||||
components = nextPreviewInformation["components"]
|
||||
for component in components:
|
||||
for component in reversed(components):
|
||||
newFrame = Image.alpha_composite(frame,component.previewRender(self))
|
||||
frame = Image.alpha_composite(frame,newFrame)
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ class Worker(QtCore.QObject):
|
|||
else:
|
||||
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:
|
||||
frame = Image.alpha_composite(frame, self.staticComponents[compNo])
|
||||
else:
|
||||
|
|
Reference in New Issue