mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
more locking
This commit is contained in:
parent
07a4dc3a7f
commit
d72152da87
3 changed files with 8 additions and 5 deletions
|
@ -136,15 +136,14 @@ bool AvatarActionHold::updateArguments(QVariantMap arguments) {
|
|||
_angularTimeScale = _linearTimeScale;
|
||||
_hand = hand;
|
||||
_holderID = holderID;
|
||||
|
||||
_active = true;
|
||||
activateBody();
|
||||
|
||||
auto ownerEntity = _ownerEntity.lock();
|
||||
if (ownerEntity) {
|
||||
ownerEntity->setActionDataDirty(true);
|
||||
}
|
||||
});
|
||||
activateBody();
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
@ -126,8 +126,13 @@ bool ObjectActionOffset::updateArguments(QVariantMap arguments) {
|
|||
_linearDistance = linearDistance;
|
||||
_positionalTargetSet = true;
|
||||
_active = true;
|
||||
activateBody();
|
||||
|
||||
auto ownerEntity = _ownerEntity.lock();
|
||||
if (ownerEntity) {
|
||||
ownerEntity->setActionDataDirty(true);
|
||||
}
|
||||
});
|
||||
activateBody();
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
@ -159,14 +159,13 @@ bool ObjectActionSpring::updateArguments(QVariantMap arguments) {
|
|||
_rotationalTarget = rotationalTarget;
|
||||
_angularTimeScale = glm::max(MIN_TIMESCALE, glm::abs(angularTimeScale));
|
||||
_active = true;
|
||||
activateBody();
|
||||
|
||||
auto ownerEntity = _ownerEntity.lock();
|
||||
if (ownerEntity) {
|
||||
ownerEntity->setActionDataDirty(true);
|
||||
}
|
||||
|
||||
});
|
||||
activateBody();
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue