I forgot that the children are in reverse order.

This commit is contained in:
Andrzej Kapolka 2013-10-15 16:17:56 -07:00
parent 84803854bf
commit b04ed72b83

View file

@ -772,7 +772,7 @@ FBXGeometry extractFBXGeometry(const FBXNode& node, const QVariantHash& mapping)
continue;
}
Material material = materials.value(childID);
FBXMeshPart& part = mesh.parts[partIndex++];
FBXMeshPart& part = mesh.parts[mesh.parts.size() - ++partIndex];
part.diffuseColor = material.diffuse;
part.specularColor = material.specular;
part.shininess = material.shininess;