- Implemented texture caching to reduce the performance hit induced by dynamically cropping apparel
- Dynamically cropping apparel is now compatible with Sized Apparel
This commit is contained in:
AbstractConcept 2023-02-07 19:30:02 -06:00
parent 767317773b
commit 9144029fec
15 changed files with 108 additions and 25 deletions

View file

@ -82,6 +82,12 @@ namespace Rimworld_Animations_Patch
// Update all humanlike pawn graphics when settings window is closed
public void ApplySettings()
{
if (ApparelSettings.cropApparel == false)
{
DebugMode.Message("Clearing apparel texture cache");
ApparelSettingsUtility.ClearCachedApparelTextures();
}
if (Current.ProgramState == ProgramState.Playing)
{
foreach (Pawn pawn in Current.Game.CurrentMap.mapPawns.AllPawns)