Skip to content

Commit

Permalink
Call the correct function when trying to export one PNG per frame, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
illegalinstruction committed Feb 13, 2020
1 parent 43a9d9e commit 1faeb05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def save_png(self, filename, **kwargs):
for i in range(len(self.frames)):
filename = '%s-%03d%s' % (prefix, i+1, ext)
cel = self.frames.cel_at(i)
cel._surface.save(filename, *doc_bbox, **kwargs)
cel.save_as_png(filename, *doc_bbox, **kwargs)

def save_avi(self, filename, vid_width=800, vid_fps=24, **kwargs):
"""
Expand Down

0 comments on commit 1faeb05

Please sign in to comment.