mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 03:53:52 +02:00
testing a more explicit fix of the audio failure
This commit is contained in:
parent
ed4b0b3589
commit
229b8d3b5e
1 changed files with 5 additions and 3 deletions
|
@ -299,7 +299,9 @@ void Avatar::simulate(float deltaTime) {
|
|||
{
|
||||
PerformanceTimer perfTimer("head");
|
||||
glm::vec3 headPosition = getPosition();
|
||||
_skeletonModel->getHeadPosition(headPosition);
|
||||
if (!_skeletonModel->getHeadPosition(headPosition)) {
|
||||
headPosition = getPosition();
|
||||
}
|
||||
Head* head = getHead();
|
||||
head->setPosition(headPosition);
|
||||
head->setScale(getUniformScale());
|
||||
|
@ -922,8 +924,8 @@ void Avatar::setModelURLFinished(bool success) {
|
|||
qDebug() << "Using default after failing to load Avatar model: " << _skeletonModelURL;
|
||||
// call _skeletonModel.setURL, but leave our copy of _skeletonModelURL alone. This is so that
|
||||
// we don't redo this every time we receive an identity packet from the avatar with the bad url.
|
||||
QMetaObject::invokeMethod(_skeletonModel.get(), "setURL",
|
||||
Qt::QueuedConnection, Q_ARG(QUrl, AvatarData::defaultFullAvatarModelUrl()));
|
||||
// QMetaObject::invokeMethod(_skeletonModel.get(), "setURL",
|
||||
// Qt::QueuedConnection, Q_ARG(QUrl, AvatarData::defaultFullAvatarModelUrl()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue