dont render obstacles with zero height
This commit is contained in:
parent
32192e8fac
commit
3720fbd0ff
1 changed files with 4 additions and 0 deletions
|
@ -121,11 +121,15 @@ class LevelGeometries:
|
|||
colors.setdefault(area.get_color(), {}).setdefault(access_restriction, []).append(area.geometry)
|
||||
|
||||
for obstacle in space.obstacles.all():
|
||||
if not obstacle.height:
|
||||
continue
|
||||
obstacles.setdefault(int(obstacle.height*1000), []).append(
|
||||
obstacle.geometry.intersection(space.walkable_geom)
|
||||
)
|
||||
|
||||
for lineobstacle in space.lineobstacles.all():
|
||||
if not lineobstacle.height:
|
||||
continue
|
||||
obstacles.setdefault(int(lineobstacle.height*1000), []).append(
|
||||
lineobstacle.buffered_geometry.intersection(space.walkable_geom)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue