0

Paste the top texture the last in _build_full_blocks

This commit is contained in:
Alejandro Aguilera
2011-03-27 14:46:15 +02:00
parent 805450e5f4
commit 69179097c5

View File

@@ -311,10 +311,6 @@ def _build_full_block(top, side1, side2, side3, side4, bottom=None, blockID=None
bottom = transform_image(bottom, blockID) bottom = transform_image(bottom, blockID)
composite.alpha_over(img, bottom, (0,12), top) 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 # front sides
if side3 != None : if side3 != None :
side3 = transform_image_side(side3, blockID) 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) 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 return img