mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:44:21 +02:00
fix bug that was making action deletes fail
This commit is contained in:
parent
4fa85441b8
commit
2ecb7e8d29
3 changed files with 5 additions and 7 deletions
|
@ -25,6 +25,7 @@ AssignmentAction::~AssignmentAction() {
|
|||
|
||||
void AssignmentAction::removeFromSimulation(EntitySimulation* simulation) const {
|
||||
simulation->removeAction(_id);
|
||||
simulation->applyActionChanges();
|
||||
}
|
||||
|
||||
QByteArray AssignmentAction::serialize() const {
|
||||
|
|
|
@ -110,11 +110,6 @@ bool AvatarActionHold::updateArguments(QVariantMap arguments) {
|
|||
ok = true;
|
||||
auto myAvatar = DependencyManager::get<AvatarManager>()->getMyAvatar();
|
||||
auto holderID = myAvatar->getSessionUUID();
|
||||
// QString holderIDString =
|
||||
// EntityActionInterface::extractStringArgument("hold", arguments, "hand", ok, false);
|
||||
// if (ok) {
|
||||
// holderID = QUuid(holderIDString);
|
||||
// }
|
||||
|
||||
if (relativePosition != _relativePosition
|
||||
|| relativeRotation != _relativeRotation
|
||||
|
|
|
@ -1720,9 +1720,11 @@ void EntityItem::setActionData(QByteArray actionData) {
|
|||
|
||||
void EntityItem::setActionDataInternal(QByteArray actionData) {
|
||||
assertWriteLocked();
|
||||
if (_allActionsDataCache != actionData) {
|
||||
_allActionsDataCache = actionData;
|
||||
deserializeActionsInternal();
|
||||
}
|
||||
checkWaitingToRemove();
|
||||
_allActionsDataCache = actionData;
|
||||
deserializeActionsInternal();
|
||||
}
|
||||
|
||||
void EntityItem::serializeActions(bool& success, QByteArray& result) const {
|
||||
|
|
Loading…
Reference in a new issue