Mercurial > touhou
diff pytouhou/ui/renderer.pyx @ 245:d3ba32a9096e
Implement ANM0 instruction 29 and fix 24
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Mon, 02 Jan 2012 18:46:55 +0100 |
parents | 98c64ffcbdff |
children | 6f1ca1cb5238 |
line wrap: on
line diff
--- a/pytouhou/ui/renderer.pyx +++ b/pytouhou/ui/renderer.pyx @@ -48,7 +48,7 @@ cdef class Renderer: for element in elements: sprite = element._sprite - if sprite: + if sprite and sprite.visible: ox, oy = element.x, element.y key, (vertices, uvs, colors) = get_sprite_rendering_data(sprite) rec = indices_by_texture.setdefault(key, [])