replace debugging aborts with asserts

This commit is contained in:
Seth Alves 2016-08-26 06:13:33 -07:00
parent acb04a0bc9
commit 9884426ad8
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -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)];
}