improve stair rendering
This commit is contained in:
parent
56b083f714
commit
009cf41dad
2 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue