Fix render when using rotation and crop
The rotation should be applied after the crop. This order was changed in this commit b6ac54a2b6
This commit is contained in:
@@ -500,12 +500,6 @@ dir but you forgot to put quotes around the directory, since it contains spaces.
|
|||||||
# regionset cache pulls from the same underlying cache object.
|
# regionset cache pulls from the same underlying cache object.
|
||||||
rset = world.CachedRegionSet(rset, caches)
|
rset = world.CachedRegionSet(rset, caches)
|
||||||
|
|
||||||
# If this is to be a rotated regionset, wrap it in a RotatedRegionSet
|
|
||||||
# object
|
|
||||||
if (render['northdirection'] > 0):
|
|
||||||
rset = world.RotatedRegionSet(rset, render['northdirection'])
|
|
||||||
logging.debug("Using RegionSet %r", rset)
|
|
||||||
|
|
||||||
# If a crop is requested, wrap the regionset here
|
# If a crop is requested, wrap the regionset here
|
||||||
if "crop" in render:
|
if "crop" in render:
|
||||||
rsets = []
|
rsets = []
|
||||||
@@ -514,6 +508,15 @@ dir but you forgot to put quotes around the directory, since it contains spaces.
|
|||||||
else:
|
else:
|
||||||
rsets = [rset]
|
rsets = [rset]
|
||||||
|
|
||||||
|
# If this is to be a rotated regionset, wrap it in a RotatedRegionSet
|
||||||
|
# object
|
||||||
|
if (render['northdirection'] > 0):
|
||||||
|
newrsets = []
|
||||||
|
for r in rsets:
|
||||||
|
r = world.RotatedRegionSet(r, render['northdirection'])
|
||||||
|
newrsets.append(r)
|
||||||
|
rsets = newrsets
|
||||||
|
|
||||||
###############################
|
###############################
|
||||||
# Do the final prep and create the TileSet object
|
# Do the final prep and create the TileSet object
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user