mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:49:24 +02:00
restore context around lock
This commit is contained in:
parent
b3be7f0f3e
commit
4161775673
1 changed files with 4 additions and 2 deletions
|
@ -929,8 +929,10 @@ void Rig::updateAnimations(float deltaTime, glm::mat4 rootTransform) {
|
||||||
buildAbsoluteRigPoses(_internalPoseSet._relativePoses, _internalPoseSet._absolutePoses);
|
buildAbsoluteRigPoses(_internalPoseSet._relativePoses, _internalPoseSet._absolutePoses);
|
||||||
|
|
||||||
// copy internal poses to external poses
|
// copy internal poses to external poses
|
||||||
QWriteLocker writeLock(&_externalPoseSetLock);
|
{
|
||||||
_externalPoseSet = _internalPoseSet;
|
QWriteLocker writeLock(&_externalPoseSetLock);
|
||||||
|
_externalPoseSet = _internalPoseSet;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Rig::inverseKinematics(int endIndex, glm::vec3 targetPosition, const glm::quat& targetRotation, float priority,
|
void Rig::inverseKinematics(int endIndex, glm::vec3 targetPosition, const glm::quat& targetRotation, float priority,
|
||||||
|
|
Loading…
Reference in a new issue