File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1725,11 +1725,13 @@ def _draw_frame(self, framedata):
1725
1725
1726
1726
# Call the func with framedata and args. If blitting is desired,
1727
1727
# func needs to return a sequence of any artists that were modified.
1728
- self ._drawn_artists = sorted (self ._func (framedata , * self ._args ),
1729
- key = lambda x : x .get_zorder ())
1728
+ self ._drawn_artists = self ._func (framedata , * self ._args )
1730
1729
if self ._blit :
1731
1730
if self ._drawn_artists is None :
1732
1731
raise RuntimeError ('The animation function must return a '
1733
1732
'sequence of Artist objects.' )
1733
+ self ._drawn_artists = sorted (self ._drawn_artists ,
1734
+ key = lambda x : x .get_zorder ())
1735
+
1734
1736
for a in self ._drawn_artists :
1735
1737
a .set_animated (self ._blit )
You can’t perform that action at this time.
0 commit comments