Fixed pawn offsets in portraits during animations

This commit is contained in:
AbstractConcept 2024-08-02 23:00:41 -05:00
parent 1a66bae865
commit 75f3387412
2 changed files with 3 additions and 0 deletions

View file

@ -13,6 +13,9 @@ namespace Rimworld_Animations
public override void TransformOffset(PawnRenderNode node, PawnDrawParms parms, ref Vector3 offset, ref Vector3 pivot)
{
if (parms.Portrait)
return;
if (node.AnimationWorker is AnimationWorker_KeyframesExtended
&& node.tree.pawn.TryGetComp<CompExtendedAnimator>(out CompExtendedAnimator extendedAnimator))
{