Merge branch 'rewrite' into anvil
This commit is contained in:
@@ -349,6 +349,20 @@ values. The valid configuration keys are listed below.
|
||||
'crop': (-500, -500, 500, 500),
|
||||
}
|
||||
|
||||
.. warning::
|
||||
|
||||
If you decide to change the bounds on a render, you may find it produces
|
||||
unexpected results.
|
||||
|
||||
For an expansion to the bounds, because chunks in the new bounds have
|
||||
the same mtime as the old, tiles will not automatically be updated. You
|
||||
may need to use :option:`--forcerender` to force those tiles to update.
|
||||
|
||||
For reductions to the bounds, because there is currently no mechanism to
|
||||
detect tiles that shouldn't exist but do, old tiles may remain and will
|
||||
not get deleted. The only fix for this currently is to delete that
|
||||
render directory and render it again with :option:`--forcerender`.
|
||||
|
||||
.. _customrendermodes:
|
||||
|
||||
Custom Rendermodes and Rendermode Primitives
|
||||
|
||||
@@ -78,13 +78,16 @@ directory.
|
||||
config.
|
||||
|
||||
"""
|
||||
return self.finalize(tilesets, True)
|
||||
self._output_assets(tilesets, True)
|
||||
|
||||
def finalize(self, tilesets, initial=False):
|
||||
def finalize(self, tilesets):
|
||||
"""Called to output the generated javascript and all static files to
|
||||
the output directory
|
||||
|
||||
"""
|
||||
self._output_assets(tilesets, False)
|
||||
|
||||
def _output_assets(self, tilesets, initial):
|
||||
if not initial:
|
||||
get_data = lambda tileset: tileset.get_persistent_data()
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user