hide wall bottom faces in 3d rendering without full levels

This commit is contained in:
Laura Klünder 2017-11-14 03:37:30 +01:00
parent 685a11cde2
commit ca213688bf

View file

@ -132,7 +132,8 @@ class MapRenderer:
walls = geoms.walls.union(add_walls)
if walls is not None:
engine.add_geometry(walls, height=geoms.default_height, fill=FillAttribs('#aaaaaa'))
engine.add_geometry(walls.filter(bottom=(not self.full_levels and engine.is_3d)),
height=geoms.default_height, fill=FillAttribs('#aaaaaa'))
if geoms.walls_extended and self.full_levels and engine.is_3d:
engine.add_geometry(geoms.walls_extended, height=geoms.default_height, fill=FillAttribs('#aaaaaa'))