for (VertexAttribute attribute : vertexAttributes)
{
if (attribute.usage == VertexAttributes.Usage.BoneWeight)
boneWeightAttributes.add(attribute);
}
<BUG>renderer.startDrawing(meshPart.primitiveType);
for (int i = meshPart.indexOffset; i < meshPart.numVertices + meshPart.indexOffset; i++)</BUG>
{
int vertexIndex = indexBuf.get(i) * vertexLengthInFloats;
if (texture != null)

for (VertexAttribute attribute : vertexAttributes)
{
if (attribute.usage == VertexAttributes.Usage.BoneWeight)
boneWeightAttributes.add(attribute);
}
renderer.begin(meshPart.primitiveType, DefaultVertexFormats.POSITION_TEX_COLOR);
for (int i = meshPart.indexOffset; i < meshPart.numVertices + meshPart.indexOffset; i++)
{
int vertexIndex = indexBuf.get(i) * vertexLengthInFloats;
if (texture != null)
