diff pytouhou/ui/anmrenderer.py @ 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 dd2bd7283bec
children f3099ebf4f61
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):