unmangle merge

This commit is contained in:
Seth Alves 2015-12-16 16:09:52 -08:00
parent 9e5116bf4f
commit 0500c21e00

View file

@ -90,10 +90,13 @@ const QUrl& AvatarData::defaultFullAvatarModelUrl() {
// There are a number of possible strategies for this set of tools through endRender, below. // There are a number of possible strategies for this set of tools through endRender, below.
void AvatarData::nextAttitude(glm::vec3 position, glm::quat orientation) { void AvatarData::nextAttitude(glm::vec3 position, glm::quat orientation) {
avatarLock.lock(); avatarLock.lock();
Transform trans = getTransform(); bool success;
Transform trans = getTransform(success);
if (!success) {
return;
}
trans.setTranslation(position); trans.setTranslation(position);
trans.setRotation(orientation); trans.setRotation(orientation);
bool success;
SpatiallyNestable::setTransform(trans, success); SpatiallyNestable::setTransform(trans, success);
if (!success) { if (!success) {
qDebug() << "Warning -- AvatarData::nextAttitude failed"; qDebug() << "Warning -- AvatarData::nextAttitude failed";