mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 11:48:09 +02:00
unmangle merge
This commit is contained in:
parent
9e5116bf4f
commit
0500c21e00
1 changed files with 5 additions and 2 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue