Implements racial override and fallback textures for races:
If there's a specific path override for a specific ThingDef (not shown in example below), that takes precedence.
If a path prefix is provided for a race, then all apparel runs through that first. If matching textures are found under the prefixed path, then those are used.
The vanilla path with the wearer's specific bodytype is checked next. If those textures are found, then everything works as normal.
If the race has set, it runs down the list in order and sees if any of them match the current apparel piece. This will check against body part groups, layers, and/or apparel tags. This can be used to set a transparent texture to make apparel invisible.
If the race has a bodytype fallback (either or , then it will attempt to substitute the fallback body type in the vanilla-generated texture path and see if that yields any usable textures.
If all else fails, it allows normal vanilla behavior to occur.
Implements racial override and fallback textures for races:
An example of the XML applied in
<graphicPaths>
:A test using the above XML: