small potential improvement of LevelRenderData.rebuild()
This commit is contained in:
parent
f9cea4dbbc
commit
37a29f5822
1 changed files with 8 additions and 1 deletions
|
@ -156,12 +156,19 @@ class LevelRenderData:
|
|||
else:
|
||||
crop_to = crop_to.intersection(geoms.holes)
|
||||
|
||||
if crop_to.is_empty:
|
||||
break
|
||||
|
||||
render_data = LevelRenderData()
|
||||
render_data.access_restriction_affected = {}
|
||||
|
||||
for sublevel in sublevels:
|
||||
old_geoms = single_level_geoms[sublevel.pk]
|
||||
try:
|
||||
crop_to = level_crop_to[sublevel.pk]
|
||||
except KeyError:
|
||||
break
|
||||
|
||||
old_geoms = single_level_geoms[sublevel.pk]
|
||||
|
||||
if crop_to is not FakeCropper:
|
||||
map_history.composite(MapHistory.open_level(sublevel.pk, 'base'), crop_to)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue