mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-08-21 08:53:46 +02:00
comment
This commit is contained in:
parent
dcc173c93a
commit
f7d558a252
1 changed files with 1 additions and 0 deletions
|
@ -580,6 +580,7 @@ void Rig::computeMotionAnimationState(float deltaTime, const glm::vec3& worldPos
|
|||
// Allow script to add/remove handlers and report results, from within their thread.
|
||||
QScriptValue Rig::addAnimationStateHandler(QScriptValue handler, QScriptValue propertiesList) { // called in script thread
|
||||
QMutexLocker locker(&_stateMutex);
|
||||
// Find a safe id, even if there are lots of many scripts add and remove handlers repeatedly.
|
||||
while (!_nextStateHandlerId || _stateHandlers.contains(_nextStateHandlerId)) { // 0 is unused, and don't reuse existing after wrap.
|
||||
_nextStateHandlerId++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue