mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
fix a race
This commit is contained in:
parent
fc61fcf494
commit
a543b957ef
1 changed files with 3 additions and 0 deletions
|
@ -1010,6 +1010,9 @@ glm::vec3 Avatar::getAbsoluteJointTranslationInObjectFrame(int index) const {
|
|||
|
||||
void Avatar::cacheJoints() const {
|
||||
// _jointIndicesCacheLock should be locked for write before calling this.
|
||||
if (_jointsCached) {
|
||||
return;
|
||||
}
|
||||
_jointIndicesCache.clear();
|
||||
if (_skeletonModel && _skeletonModel->isActive()) {
|
||||
_jointIndicesCache = _skeletonModel->getFBXGeometry().jointIndices;
|
||||
|
|
Loading…
Reference in a new issue