mirror of
				https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
				synced 2024-08-15 00:43:45 +00:00 
			
		
		
		
	missing compbodyanimator check
This commit is contained in:
		
							parent
							
								
									16d825975b
								
							
						
					
					
						commit
						4a7faa53b6
					
				
					 2 changed files with 8 additions and 0 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -74,6 +74,14 @@ namespace Rimworld_Animations {
 | 
			
		|||
				pawnsToAnimate = pawnsToAnimate.Append(pawn).ToList();
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			for(int i = 0; i < pawnsToAnimate.Count; i++) {
 | 
			
		||||
 | 
			
		||||
				if(pawnsToAnimate[i].TryGetComp<CompBodyAnimator>() == null) {
 | 
			
		||||
					Log.Error("Error: " + pawnsToAnimate[i].Name + " of race " + pawnsToAnimate[i].def.defName + " does not have CompBodyAnimator attached!");
 | 
			
		||||
					break;
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			AnimationDef anim = AnimationUtility.tryFindAnimation(ref pawnsToAnimate, sexType, sexProps);
 | 
			
		||||
 | 
			
		||||
			if (anim != null) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue