render inner-tiles even if there are no render-tiles to render
This commit is contained in:
@@ -83,6 +83,10 @@ class RenderNode(object):
|
||||
def __init__(self, quadtrees, options):
|
||||
"""Distributes the rendering of a list of quadtrees.
|
||||
|
||||
This class name is slightly misleading: it does not represent a worker
|
||||
process, it coordinates the rendering of the given quadtrees across
|
||||
many worker processes.
|
||||
|
||||
This class tries not to make any assumptions on whether the given
|
||||
quadtrees share the same world or whether the given quadtrees share the
|
||||
same depth/structure. However, those assumptions have not been checked;
|
||||
@@ -194,10 +198,6 @@ class RenderNode(object):
|
||||
max_p = q.p
|
||||
self.max_p = max_p
|
||||
|
||||
if total_rendertiles == 0:
|
||||
logging.info(r"There is no work to do, your map is up to date! \o/")
|
||||
return
|
||||
|
||||
# Set a reasonable batch size. Groups of tiles are sent to workers in
|
||||
# batches this large. It should be a multiple of the number of
|
||||
# quadtrees so that each worker gets corresponding tiles from each
|
||||
@@ -315,7 +315,8 @@ class RenderNode(object):
|
||||
except Queue.Empty:
|
||||
pass
|
||||
|
||||
# Print the final status line unconditionally
|
||||
# Print the final status line almost unconditionally
|
||||
if total_rendertiles > 0:
|
||||
self.print_statusline(complete, total_rendertiles, 1, True)
|
||||
|
||||
##########################################
|
||||
|
||||
Reference in New Issue
Block a user