darken lower levels
This commit is contained in:
parent
07a1a79cc4
commit
26cb860efb
4 changed files with 37 additions and 4 deletions
|
@ -54,11 +54,14 @@ class MapRenderer:
|
|||
not_full_levels = engine.is_3d # always do non-full-levels until after the first primary level
|
||||
full_levels = self.full_levels and engine.is_3d
|
||||
for geoms in levels:
|
||||
engine.add_group('level_%s' % geoms.short_label)
|
||||
|
||||
if geoms.pk == level_render_data.lowest_important_level:
|
||||
engine.darken(level_render_data.darken_area)
|
||||
|
||||
if not bbox.intersects(geoms.affected_area):
|
||||
continue
|
||||
|
||||
engine.add_group('level_%s' % geoms.short_label)
|
||||
|
||||
# hide indoor and outdoor rooms if their access restriction was not unlocked
|
||||
add_walls = hybrid_union(tuple(area for access_restriction, area in geoms.restricted_spaces_indoors.items()
|
||||
if access_restriction not in access_permissions))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue