mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
Merge branch 'faster-getters-on-avatar-for-scripts' of github.com:sethalves/hifi into faster-getters-on-avatar-for-scripts
This commit is contained in:
commit
0d3412bd97
1 changed files with 4 additions and 0 deletions
|
@ -1019,6 +1019,10 @@ void Avatar::cacheJoints() const {
|
|||
|
||||
int Avatar::getJointIndex(const QString& name) const {
|
||||
auto getJointIndexWorker = [&]() {
|
||||
int result = getFauxJointIndex(name);
|
||||
if (result != -1) {
|
||||
return result;
|
||||
}
|
||||
if (_jointIndicesCache.contains(name)) {
|
||||
return _jointIndicesCache[name];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue