0

Merge pull request #665 from peikk0/textures-fix

Find images in anim/ directory too.
This commit is contained in:
Aaron Griffith
2012-03-29 12:00:27 -07:00

View File

@@ -124,14 +124,14 @@ class Textures(object):
* 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/'.
"""
# a list of subdirectories to search for a given file,
# after the obvious '.'
search_dirs = ['misc', 'environment']
search_dirs = ['anim', 'misc', 'environment']
search_zip_paths = [filename,] + [d + '/' + filename for d in search_dirs]
def search_dir(base):
"""Search the given base dir for filename, in search_dirs."""