also add action to _previouslyDeletedActions if the local interface deletes the action

This commit is contained in:
Seth Alves 2015-10-01 14:45:10 -07:00
parent d320f5b6f4
commit 56b50b5fb3

View file

@ -1566,6 +1566,7 @@ bool EntityItem::removeAction(EntitySimulation* simulation, const QUuid& actionI
bool EntityItem::removeActionInternal(const QUuid& actionID, EntitySimulation* simulation) { bool EntityItem::removeActionInternal(const QUuid& actionID, EntitySimulation* simulation) {
assertWriteLocked(); assertWriteLocked();
_previouslyDeletedActions.insert(actionID, usecTimestampNow());
if (_objectActions.contains(actionID)) { if (_objectActions.contains(actionID)) {
if (!simulation) { if (!simulation) {
EntityTreePointer entityTree = _element ? _element->getTree() : nullptr; EntityTreePointer entityTree = _element ? _element->getTree() : nullptr;