Commit 15c6d59
committed
Deprecate truncating saved unsized anims to 100 frames.
To test that the deprecation is working, uncomment the `ani.save(...)`
line in the simple_anim.py example and modify the anim's save_count.
Animations that happened to generate exactly 100 frames without
truncation will incorrectly trigger a warning; not sure we can do much
about it (because after the 100th frame is generated there is no way to
know whether another frame is coming except by actually calling next()
on the generator, which we do not want to do).1 parent 4753f6c commit 15c6d59
2 files changed
Lines changed: 23 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | 41 | | |
43 | | - | |
| 42 | + | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
1681 | 1680 | | |
1682 | 1681 | | |
1683 | 1682 | | |
1684 | | - | |
| 1683 | + | |
1685 | 1684 | | |
1686 | 1685 | | |
1687 | 1686 | | |
| |||
1723 | 1722 | | |
1724 | 1723 | | |
1725 | 1724 | | |
1726 | | - | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
1727 | 1745 | | |
1728 | 1746 | | |
1729 | 1747 | | |
| |||
0 commit comments