diff data/ST/make_stage.py @ 120:4300a832f033

Small refactoring and massive performance improvement
author Thibaut Girka <thib@sitedethib.com>
date Thu, 08 Sep 2011 12:46:05 +0200
parents 1ec8be40880f
children 1bc0ad774ed4
line wrap: on
line diff
--- a/data/ST/make_stage.py
+++ b/data/ST/make_stage.py
@@ -65,10 +65,9 @@ anm_wrapper = AnmWrapper([Animations.rea
 for model in models:
     vertices = []
     for script_index, ox2, oy2, oz2, width_override, height_override in model.quads:
-        sprite = Sprite()
+        sprite = Sprite(width_override, height_override)
         anmrunner = ANMRunner(anm_wrapper, script_index, sprite)
         anmrunner.run_frame()
-        sprite.update()
         key, (vertices2, uvs2, colors2) = get_sprite_rendering_data(sprite)
         vertices.extend((x + ox2, y + oy2, z + oz2) for x, y, z in vertices2)
     xmin, ymin, zmin = min(x for x, y, z in vertices), min(y for x, y, z in vertices), min(z for x, y, z in vertices)