mirror of
https://github.com/lubosz/overte.git
synced 2025-04-15 16:02:46 +02:00
Merge pull request #10457 from vladest/sit-script-crash
Fix crash in sit script
This commit is contained in:
commit
8ff8d70f84
1 changed files with 5 additions and 0 deletions
|
@ -291,6 +291,11 @@ QByteArray MyAvatar::toByteArrayStateful(AvatarDataDetail dataDetail) {
|
|||
}
|
||||
|
||||
void MyAvatar::resetSensorsAndBody() {
|
||||
if (QThread::currentThread() != thread()) {
|
||||
QMetaObject::invokeMethod(this, "resetSensorsAndBody");
|
||||
return;
|
||||
}
|
||||
|
||||
qApp->getActiveDisplayPlugin()->resetSensors();
|
||||
reset(true, false, true);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue