mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-09 10:47:53 +02:00
Merge pull request #15178 from amantley/fbxJointParentBug
Fix for FBX Root Being Given Non-Zero Parent
This commit is contained in:
commit
53c7ade542
1 changed files with 8 additions and 2 deletions
|
@ -1164,8 +1164,14 @@ HFMModel* FBXSerializer::extractHFMModel(const hifi::VariantHash& mapping, const
|
|||
counter++;
|
||||
}
|
||||
}
|
||||
_connectionParentMap.insert(getID(connection.properties, 1), getID(connection.properties, 2));
|
||||
_connectionChildMap.insert(getID(connection.properties, 2), getID(connection.properties, 1));
|
||||
if (_connectionParentMap.value(getID(connection.properties, 1)) == "0") {
|
||||
// don't assign the new parent
|
||||
qCDebug(modelformat) << "root node " << getID(connection.properties, 1) << " has discarded parent " << getID(connection.properties, 2);
|
||||
_connectionChildMap.insert(getID(connection.properties, 2), getID(connection.properties, 1));
|
||||
} else {
|
||||
_connectionParentMap.insert(getID(connection.properties, 1), getID(connection.properties, 2));
|
||||
_connectionChildMap.insert(getID(connection.properties, 2), getID(connection.properties, 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue