mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:44:21 +02:00
Just check the last entry for the type.
This commit is contained in:
parent
ec17b80b52
commit
a6a4ceebe4
1 changed files with 2 additions and 3 deletions
|
@ -830,8 +830,7 @@ FBXGeometry extractFBXGeometry(const FBXNode& node, const QVariantHash& mapping)
|
|||
materials.insert(object.properties.at(0).toString(), material);
|
||||
|
||||
} else if (object.name == "Deformer") {
|
||||
if ((object.properties.size() == 3 && object.properties.at(2) == "Cluster") ||
|
||||
(object.properties.size() == 2 && object.properties.at(1) == "Cluster")) {
|
||||
if (object.properties.last() == "Cluster") {
|
||||
Cluster cluster;
|
||||
foreach (const FBXNode& subobject, object.children) {
|
||||
if (subobject.name == "Indexes") {
|
||||
|
@ -847,7 +846,7 @@ FBXGeometry extractFBXGeometry(const FBXNode& node, const QVariantHash& mapping)
|
|||
}
|
||||
clusters.insert(object.properties.at(0).toString(), cluster);
|
||||
|
||||
} else if (object.properties.at(2) == "BlendShapeChannel") {
|
||||
} else if (object.properties.last() == "BlendShapeChannel") {
|
||||
QByteArray name = object.properties.at(1).toByteArray();
|
||||
name = name.left(name.indexOf('\0'));
|
||||
if (!blendshapeIndices.contains(name)) {
|
||||
|
|
Loading…
Reference in a new issue