fix a race

This commit is contained in:
Seth Alves 2017-07-06 17:45:57 -07:00
parent fc61fcf494
commit a543b957ef

View file

@ -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;