mirror of
				https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
				synced 2024-08-15 00:43:45 +00:00 
			
		
		
		
	fixed beast anim error
This commit is contained in:
		
							parent
							
								
									a4d308e64f
								
							
						
					
					
						commit
						9a6df8606d
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		
										
											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…
	
	Add table
		Add a link
		
	
		Reference in a new issue