changeset 288:d95beee0087a

Make anmviewer work with newest anmwrapper.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 13 Feb 2012 12:00:57 +0100
parents 981d1893d564
children e7f40bff72fc
files pytouhou/ui/anmrenderer.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/pytouhou/ui/anmrenderer.py
+++ b/pytouhou/ui/anmrenderer.py
@@ -149,11 +149,9 @@ class ANMRenderer(pyglet.window.Window, 
     def index_items(self):
         self.items = {}
         if self.sprites:
-            for anm in self._anm_wrapper.anm_files:
-                self.items.update(anm.sprites)
+            self.items = self._anm_wrapper.sprites
         else:
-            for anm in self._anm_wrapper.anm_files:
-                self.items.update(anm.scripts)
+            self.items = self._anm_wrapper.scripts
 
 
     def toggle_sprites(self):