fixed beast anim error
This commit is contained in:
parent
a4d308e64f
commit
9a6df8606d
Binary file not shown.
|
@ -405,7 +405,9 @@ namespace Rimworld_Animations {
|
|||
if(headFacing.IsHorizontal && mirror) {
|
||||
headFacing = headFacing.Opposite;
|
||||
}
|
||||
headBob = new Vector3(0, 0, clip.HeadBob.Evaluate(clipPercent)) * pawn.story.bodyType.bodyGraphicScale;
|
||||
headBob = new Vector3(0, 0, clip.HeadBob.Evaluate(clipPercent));
|
||||
Vector2 bodyOffset = (pawn.story?.bodyType?.bodyGraphicScale != null ? pawn.story.bodyType.bodyGraphicScale : Vector2.one);
|
||||
headBob.z *= bodyOffset.x;
|
||||
|
||||
lastDrawFrame = RealTime.frameCount;
|
||||
|
||||
|
|
Loading…
Reference in New Issue