From 74a0c9c4ab50bfc17b1d48b677ae53f0357b630c Mon Sep 17 00:00:00 2001 From: Rebecca Palmer Date: Mon, 16 Jun 2014 08:11:47 +0100 Subject: [PATCH] fgdata_checkers: add exclusion for splash screens --- fgdata_checkers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fgdata_checkers.py b/fgdata_checkers.py index 29936a7..441e3aa 100644 --- a/fgdata_checkers.py +++ b/fgdata_checkers.py @@ -54,7 +54,7 @@ output_rsync_rules prints rsync rules for excluding unused textures from the rel output_comparison_strips creates thumbnail strips, unused_duplicate.png/unused_dds.png/high_low.png, for visually checking whether same-name textures are the same (remove the unused one entirely) or different (move it to Unused); requires imagemagick or graphicsmagick output_removal_commands creates another script, delete_unused_textures.sh, which will remove unused textures when run in a Unix shell""" - false_positives=set(['buildings-lightmap.png','buildings.png','Credits','Globe/00README.txt', 'Globe/01READMEocean_depth_1png.txt', 'Globe/world.topo.bathy.200407.3x4096x2048.png','Trees/convert.pl'])#these either aren't textures, or are used where we don't check + false_positives=set(['buildings-lightmap.png','buildings.png','Credits','Globe/00README.txt', 'Globe/01READMEocean_depth_1png.txt', 'Globe/world.topo.bathy.200407.3x4096x2048.png','Trees/convert.pl','Splash1.png','Splash2.png','Splash3.png','Splash4.png','Splash5.png','unknown.rgb','Terrain/unknown.rgb'])#these either aren't textures, or are used where we don't check used_textures=set(files_used(path=os.path.join(basedir,'Materials'),pattern=r'<(?:texture|object-mask|tree-texture).*?>(\S+?)(\S+?) (possibly with number), or element used_effectslow=set(files_used(path=os.path.join(basedir,'Effects'),pattern=r'image.*?>[\\/]?Textures[\\/](\S+?)Textures[\\/](\S+?)), and Materials /, explicitly includes the Textures/ or Textures.high/