mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-16 22:30:42 +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);
|
||||
|
||||
// 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,
|
||||
|
|
Loading…
Reference in a new issue