Adapt to the *other* kind of cluster.

This commit is contained in:
Andrzej Kapolka 2013-10-18 17:54:54 -07:00
parent ea50d6f22e
commit ec17b80b52

View file

@ -830,7 +830,8 @@ FBXGeometry extractFBXGeometry(const FBXNode& node, const QVariantHash& mapping)
materials.insert(object.properties.at(0).toString(), material);
} else if (object.name == "Deformer") {
if (object.properties.at(2) == "Cluster") {
if ((object.properties.size() == 3 && object.properties.at(2) == "Cluster") ||
(object.properties.size() == 2 && object.properties.at(1) == "Cluster")) {
Cluster cluster;
foreach (const FBXNode& subobject, object.children) {
if (subobject.name == "Indexes") {