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:
|
else:
|
||||||
crop_to = crop_to.intersection(geoms.holes)
|
crop_to = crop_to.intersection(geoms.holes)
|
||||||
|
|
||||||
|
if crop_to.is_empty:
|
||||||
|
break
|
||||||
|
|
||||||
render_data = LevelRenderData()
|
render_data = LevelRenderData()
|
||||||
render_data.access_restriction_affected = {}
|
render_data.access_restriction_affected = {}
|
||||||
|
|
||||||
for sublevel in sublevels:
|
for sublevel in sublevels:
|
||||||
|
try:
|
||||||
|
crop_to = level_crop_to[sublevel.pk]
|
||||||
|
except KeyError:
|
||||||
|
break
|
||||||
|
|
||||||
old_geoms = single_level_geoms[sublevel.pk]
|
old_geoms = single_level_geoms[sublevel.pk]
|
||||||
crop_to = level_crop_to[sublevel.pk]
|
|
||||||
|
|
||||||
if crop_to is not FakeCropper:
|
if crop_to is not FakeCropper:
|
||||||
map_history.composite(MapHistory.open_level(sublevel.pk, 'base'), crop_to)
|
map_history.composite(MapHistory.open_level(sublevel.pk, 'base'), crop_to)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue