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; | ||||
| 			for (Structure deformGroup : deformGroups) { | ||||
| 				String deformGroupName = deformGroup.getFieldValue("name").toString(); | ||||
| 				Integer boneIndex = this.getBoneIndex(skeleton, deformGroupName); | ||||
| 				if (boneIndex != null) { | ||||
| 					result.put(Integer.valueOf(groupIndex), boneIndex); | ||||
| 				int boneIndex = this.getBoneIndex(skeleton, deformGroupName); | ||||
| 				if (boneIndex >= 0) { | ||||
| 					result.put(groupIndex, boneIndex); | ||||
| 				} | ||||
| 				++groupIndex; | ||||
| 			} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user