FIXED: Issue 515: Blender loader - "-1" bone indices are generated for this model
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9537 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
		
							parent
							
								
									0ba541ecd1
								
							
						
					
					
						commit
						d3452297ce
					
				| @ -130,9 +130,9 @@ public class ArmatureHelper extends AbstractBlenderHelper { | |||||||
| 			int groupIndex = 0; | 			int groupIndex = 0; | ||||||
| 			for (Structure deformGroup : deformGroups) { | 			for (Structure deformGroup : deformGroups) { | ||||||
| 				String deformGroupName = deformGroup.getFieldValue("name").toString(); | 				String deformGroupName = deformGroup.getFieldValue("name").toString(); | ||||||
| 				Integer boneIndex = this.getBoneIndex(skeleton, deformGroupName); | 				int boneIndex = this.getBoneIndex(skeleton, deformGroupName); | ||||||
| 				if (boneIndex != null) { | 				if (boneIndex >= 0) { | ||||||
| 					result.put(Integer.valueOf(groupIndex), boneIndex); | 					result.put(groupIndex, boneIndex); | ||||||
| 				} | 				} | ||||||
| 				++groupIndex; | 				++groupIndex; | ||||||
| 			} | 			} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user