fix invokeMethod in AvatarManager::findRayIntersection

This commit is contained in:
Seth Alves 2016-06-28 11:15:01 -07:00
parent 5e7e6d2f3e
commit 8a0d58a0c2

View file

@ -405,6 +405,7 @@ RayToAvatarIntersectionResult AvatarManager::findRayIntersection(const PickRay&
if (QThread::currentThread() != thread()) {
RayToAvatarIntersectionResult result;
QMetaObject::invokeMethod(const_cast<AvatarManager*>(this), "findRayIntersection", Qt::BlockingQueuedConnection,
Q_ARG(const PickRay&, ray),
Q_ARG(const QScriptValue&, avatarIdsToInclude),
Q_ARG(const QScriptValue&, avatarIdsToDiscard),
Q_RETURN_ARG(RayToAvatarIntersectionResult, result));