mirror of
https://gitgud.io/AbstractConcept/rimworld-animations-patch.git
synced 2024-08-15 00:43:27 +00:00
v 1.2.3
This commit is contained in:
parent
3e8476ce8a
commit
d18d422a94
15 changed files with 68 additions and 39 deletions
|
@ -86,7 +86,9 @@ namespace Rimworld_Animations_Patch
|
|||
{
|
||||
foreach (Pawn pawn in Current.Game.CurrentMap.mapPawns.AllPawns)
|
||||
{
|
||||
pawn.Drawer.renderer.graphics.ResolveAllGraphics();
|
||||
if (pawn == null) continue;
|
||||
|
||||
pawn.Drawer?.renderer?.graphics?.ResolveAllGraphics();
|
||||
pawn.TryGetComp<CompPawnSexData>()?.UpdateBodyAddonVisibility();
|
||||
|
||||
PortraitsCache.SetDirty(pawn);
|
||||
|
|
|
@ -78,7 +78,10 @@ namespace Rimworld_Animations_Patch
|
|||
{
|
||||
foreach (Pawn pawn in Current.Game.CurrentMap.mapPawns.AllPawns)
|
||||
{
|
||||
pawn.Drawer.renderer.graphics.ResolveAllGraphics();
|
||||
if (pawn == null) continue;
|
||||
|
||||
pawn.Drawer?.renderer?.graphics?.ResolveAllGraphics();
|
||||
|
||||
PortraitsCache.SetDirty(pawn);
|
||||
GlobalTextureAtlasManager.TryMarkPawnFrameSetDirty(pawn);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue