mirror of
https://github.com/overte-org/overte.git
synced 2025-06-19 10:00:12 +02:00
Fix crash in sit script
This commit is contained in:
parent
49d4cf4e68
commit
cc10fc81b7
1 changed files with 5 additions and 0 deletions
|
@ -291,6 +291,11 @@ QByteArray MyAvatar::toByteArrayStateful(AvatarDataDetail dataDetail) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyAvatar::resetSensorsAndBody() {
|
void MyAvatar::resetSensorsAndBody() {
|
||||||
|
if (QThread::currentThread() != thread()) {
|
||||||
|
QMetaObject::invokeMethod(this, "resetSensorsAndBody");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
qApp->getActiveDisplayPlugin()->resetSensors();
|
qApp->getActiveDisplayPlugin()->resetSensors();
|
||||||
reset(true, false, true);
|
reset(true, false, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue