buildings are still needed
This commit is contained in:
parent
ab4a5407d2
commit
32bb463003
1 changed files with 5 additions and 4 deletions
|
@ -197,11 +197,12 @@ class EditorViewSet(EditorViewSetMixin, ViewSet):
|
|||
|
||||
space.bounds = True
|
||||
|
||||
# deactivated for performance reasons
|
||||
buildings = level.buildings.all()
|
||||
buildings_geom = cascaded_union([building.geometry for building in buildings])
|
||||
for other_space in other_spaces:
|
||||
if other_space.outside:
|
||||
other_space.geometry = other_space.geometry.difference(buildings_geom)
|
||||
# buildings_geom = cascaded_union([building.geometry for building in buildings])
|
||||
# for other_space in other_spaces:
|
||||
# if other_space.outside:
|
||||
# other_space.geometry = other_space.geometry.difference(buildings_geom)
|
||||
for other_space in chain(other_spaces, other_spaces_lower, other_spaces_upper):
|
||||
other_space.opacity = 0.4
|
||||
other_space.color = '#ffffff'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue