From 69179097c54f21e35a3ed01ddf3f40b709c09763 Mon Sep 17 00:00:00 2001 From: Alejandro Aguilera Date: Sun, 27 Mar 2011 14:46:15 +0200 Subject: [PATCH] Paste the top texture the last in _build_full_blocks --- textures.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/textures.py b/textures.py index 565d194..fa1ac68 100644 --- a/textures.py +++ b/textures.py @@ -311,10 +311,6 @@ def _build_full_block(top, side1, side2, side3, side4, bottom=None, blockID=None bottom = transform_image(bottom, blockID) composite.alpha_over(img, bottom, (0,12), top) - if top != None : - top = transform_image(top, blockID) - composite.alpha_over(img, top, (0,0), top) - # front sides if side3 != None : side3 = transform_image_side(side3, blockID) @@ -337,6 +333,10 @@ def _build_full_block(top, side1, side2, side3, side4, bottom=None, blockID=None composite.alpha_over(img, side4, (12,6), side4) + if top != None : + top = transform_image(top, blockID) + composite.alpha_over(img, top, (0,0), top) + return img