0

Fix holes in stairs.

This commit is contained in:
Alejandro Aguilera
2011-11-07 13:26:22 +01:00
parent 3f628dcc1b
commit 6dbac888d2

View File

@@ -1430,6 +1430,7 @@ def stairs(blockid, data, north):
tmp1 = ImageEnhance.Brightness(tmp1).enhance(0.8) tmp1 = ImageEnhance.Brightness(tmp1).enhance(0.8)
tmp1.putalpha(sidealpha) tmp1.putalpha(sidealpha)
composite.alpha_over(img, tmp1, (6,4)) #workaround, fixes a hole
composite.alpha_over(img, tmp1, (6,3)) composite.alpha_over(img, tmp1, (6,3))
tmp2 = transform_image_top(half_block_l) tmp2 = transform_image_top(half_block_l)
composite.alpha_over(img, tmp2, (0,6)) composite.alpha_over(img, tmp2, (0,6))
@@ -1458,6 +1459,7 @@ def stairs(blockid, data, north):
tmp1 = ImageEnhance.Brightness(tmp1).enhance(0.7) tmp1 = ImageEnhance.Brightness(tmp1).enhance(0.7)
tmp1.putalpha(sidealpha) tmp1.putalpha(sidealpha)
composite.alpha_over(img, tmp1, (6,4)) #workaround, fixes a hole
composite.alpha_over(img, tmp1, (6,3)) composite.alpha_over(img, tmp1, (6,3))
tmp2 = transform_image_top(half_block_d) tmp2 = transform_image_top(half_block_d)
composite.alpha_over(img, tmp2, (0,6)) composite.alpha_over(img, tmp2, (0,6))