confine areas to their spaces
This commit is contained in:
parent
056a4ef635
commit
b4ce69c6b9
1 changed files with 1 additions and 0 deletions
|
@ -119,6 +119,7 @@ class LevelGeometries:
|
|||
|
||||
for area in space.areas.all():
|
||||
access_restriction = area.access_restriction_id or space.access_restriction_id
|
||||
area.geometry = area.geometry.intersection(space.walkable_geom)
|
||||
if access_restriction is not None:
|
||||
access_restriction_affected.setdefault(access_restriction, []).append(area.geometry)
|
||||
colors.setdefault(area.get_color(), {}).setdefault(access_restriction, []).append(area.geometry)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue