improve stair rendering

This commit is contained in:
Laura Klünder 2016-12-08 12:39:45 +01:00
parent 56b083f714
commit 009cf41dad
2 changed files with 2 additions and 2 deletions

View file

@ -197,7 +197,7 @@ class LevelGeometries():
@cached_property
def stairs(self):
return cascaded_union([stair.geometry for stair in self.level.stairs.all()])
return cascaded_union([stair.geometry for stair in self.level.stairs.all()]).intersection(self.accessible)
@cached_property
def stair_shadows(self):

View file

@ -120,7 +120,7 @@ class LevelRenderer():
contents.append(self.polygon_svg(self.level.geometries.stairs,
stroke_color='#000000',
stroke_width=0.06,
stroke_opacity=0.2))
stroke_opacity=0.3))
contents.append(self.polygon_svg(self.level.geometries.walls_shadow,
fill_color='#000000',