mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
put result of Avatar::getJointNames back in index-order
This commit is contained in:
parent
d346b1c68f
commit
44de1dd2be
1 changed files with 9 additions and 3 deletions
|
@ -1048,11 +1048,17 @@ int Avatar::getJointIndex(const QString& name) const {
|
|||
}
|
||||
|
||||
QStringList Avatar::getJointNames() const {
|
||||
QStringList result;
|
||||
QVector<QString> result;
|
||||
withValidJointIndicesCache([&]() {
|
||||
result = _modelJointIndicesCache.keys();
|
||||
QHashIterator<QString, int> i(_modelJointIndicesCache);
|
||||
while (i.hasNext()) {
|
||||
i.next();
|
||||
int index = _modelJointIndicesCache[i.key()];
|
||||
result.resize(index);
|
||||
result[index] = i.value();
|
||||
}
|
||||
});
|
||||
return result;
|
||||
return result.toList();
|
||||
}
|
||||
|
||||
glm::vec3 Avatar::getJointPosition(int index) const {
|
||||
|
|
Loading…
Reference in a new issue