Merge pull request #10457 from vladest/sit-script-crash

Fix crash in sit script
This commit is contained in:
Seth Alves 2017-05-15 11:07:37 -07:00 committed by GitHub
commit 8ff8d70f84

View file

@ -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);
}