mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 17:53:32 +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,
|
||||
ThreadSafeValueCache<glm::mat4>& matrixCache) {
|
||||
if (QThread::currentThread() != thread()) { abort(); } // XXX
|
||||
assert(QThread::currentThread() == thread());
|
||||
auto userInputMapper = DependencyManager::get<UserInputMapper>();
|
||||
controller::Pose controllerPose = userInputMapper->getPoseState(poseKey);
|
||||
Transform transform;
|
||||
|
|
|
@ -335,7 +335,7 @@ QVector<QString> UserInputMapper::getActionNames() const {
|
|||
}
|
||||
|
||||
Pose UserInputMapper::getPoseState(Action action) const {
|
||||
if (QThread::currentThread() != thread()) { abort(); } // XXX
|
||||
assert(QThread::currentThread() == thread());
|
||||
return _poseStates[toInt(action)];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue