mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 19:41:20 +02:00
replace debugging aborts with asserts
This commit is contained in:
parent
acb04a0bc9
commit
9884426ad8
2 changed files with 2 additions and 2 deletions
|
@ -534,7 +534,7 @@ void MyAvatar::updateFromHMDSensorMatrix(const glm::mat4& hmdSensorMatrix) {
|
||||||
|
|
||||||
void MyAvatar::updateJointFromController(glm::mat4& previousSensorToWorldInverseMatrix, controller::Action poseKey,
|
void MyAvatar::updateJointFromController(glm::mat4& previousSensorToWorldInverseMatrix, controller::Action poseKey,
|
||||||
ThreadSafeValueCache<glm::mat4>& matrixCache) {
|
ThreadSafeValueCache<glm::mat4>& matrixCache) {
|
||||||
if (QThread::currentThread() != thread()) { abort(); } // XXX
|
assert(QThread::currentThread() == thread());
|
||||||
auto userInputMapper = DependencyManager::get<UserInputMapper>();
|
auto userInputMapper = DependencyManager::get<UserInputMapper>();
|
||||||
controller::Pose controllerPose = userInputMapper->getPoseState(poseKey);
|
controller::Pose controllerPose = userInputMapper->getPoseState(poseKey);
|
||||||
Transform transform;
|
Transform transform;
|
||||||
|
|
|
@ -335,7 +335,7 @@ QVector<QString> UserInputMapper::getActionNames() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
Pose UserInputMapper::getPoseState(Action action) const {
|
Pose UserInputMapper::getPoseState(Action action) const {
|
||||||
if (QThread::currentThread() != thread()) { abort(); } // XXX
|
assert(QThread::currentThread() == thread());
|
||||||
return _poseStates[toInt(action)];
|
return _poseStates[toInt(action)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue