0

Find images in anim/ directory too, useful for MCPatcher images like custom_water_still.png

This commit is contained in:
Pierre Guinoiseau
2012-03-26 19:12:45 +02:00
parent 373291932f
commit b0ee71a815

View File

@@ -124,14 +124,14 @@ class Textures(object):
* The overviewer_core/data/textures dir * The overviewer_core/data/textures dir
In all of these, files are searched for in '.', 'misc/', and In all of these, files are searched for in '.', 'anim', 'misc/', and
'environment/'. 'environment/'.
""" """
# a list of subdirectories to search for a given file, # a list of subdirectories to search for a given file,
# after the obvious '.' # after the obvious '.'
search_dirs = ['misc', 'environment'] search_dirs = ['anim', 'misc', 'environment']
search_zip_paths = [filename,] + [d + '/' + filename for d in search_dirs] search_zip_paths = [filename,] + [d + '/' + filename for d in search_dirs]
def search_dir(base): def search_dir(base):
"""Search the given base dir for filename, in search_dirs.""" """Search the given base dir for filename, in search_dirs."""