send to network when an action is deleted, also

This commit is contained in:
Seth Alves 2015-11-13 09:52:35 -08:00
parent 3f7f5a2bbd
commit 6ec5b12081

View file

@ -1629,6 +1629,7 @@ bool EntityItem::removeActionInternal(const QUuid& actionID, EntitySimulation* s
bool success = true;
serializeActions(success, _allActionsDataCache);
_dirtyFlags |= Simulation::DIRTY_PHYSICS_ACTIVATION;
setActionDataNeedsTransmit(true);
return success;
}
return false;
@ -1749,8 +1750,6 @@ void EntityItem::checkWaitingToRemove(EntitySimulation* simulation) {
assertLocked();
foreach(QUuid actionID, _actionsToRemove) {
removeActionInternal(actionID, simulation);
setActionDataDirty(true);
setActionDataNeedsTransmit(true);
}
_actionsToRemove.clear();
}