mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
Fixed pawn offsets in portraits during animations
This commit is contained in:
parent
1a66bae865
commit
75f3387412
2 changed files with 3 additions and 0 deletions
Binary file not shown.
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue