mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 03:59:18 +02:00
try again to make this thread safe
This commit is contained in:
parent
0064ee6ab2
commit
28d673cb97
1 changed files with 2 additions and 2 deletions
|
@ -979,7 +979,7 @@ int EntityScriptingInterface::getJointIndex(const QUuid& entityID, const QString
|
||||||
}
|
}
|
||||||
int result;
|
int result;
|
||||||
QMetaObject::invokeMethod(_entityTree.get(), "getJointIndex", Qt::BlockingQueuedConnection,
|
QMetaObject::invokeMethod(_entityTree.get(), "getJointIndex", Qt::BlockingQueuedConnection,
|
||||||
Q_ARG(QUuid, entityID), Q_ARG(QString, name), Q_RETURN_ARG(int, result));
|
Q_RETURN_ARG(int, result), Q_ARG(QUuid, entityID), Q_ARG(QString, name));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -989,6 +989,6 @@ QStringList EntityScriptingInterface::getJointNames(const QUuid& entityID) {
|
||||||
}
|
}
|
||||||
QStringList result;
|
QStringList result;
|
||||||
QMetaObject::invokeMethod(_entityTree.get(), "getJointNames", Qt::BlockingQueuedConnection,
|
QMetaObject::invokeMethod(_entityTree.get(), "getJointNames", Qt::BlockingQueuedConnection,
|
||||||
Q_ARG(QUuid, entityID), Q_RETURN_ARG(QStringList, result));
|
Q_RETURN_ARG(QStringList, result), Q_ARG(QUuid, entityID));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue