Fixing extruded polygons render order

This commit is contained in:
Komzpa 2010-07-22 09:55:21 +03:00
parent 5d09351a19
commit 9518b9b304

View file

@ -170,7 +170,7 @@ class RasterTile:
for layer in layers:
data = objs_by_layers[layer]
#data.sort(lambda x,y:cmp(max([x1[1] for x1 in x[0].cs]), max([x1[1] for x1 in y[0].cs])))
# - draw casings on layer
@ -211,8 +211,9 @@ class RasterTile:
cr.set_line_cap(linecaps.get(obj[1].get("linecap", "butt"),0))
line(cr, obj[0].cs)
# - fill polygons
#for obj in data:
# - extruding polygons
data.sort(lambda x,y:cmp(max([x1[1] for x1 in x[0].cs]), max([x1[1] for x1 in y[0].cs])))
for obj in data:
if "extrude" in obj[1]:
def face_to_poly(face, hgt):
"""