Merge pull request #13630 from huffman/fix/create-undo-while-disabled-visual

Disable showing the entity edit tools when undoing while disabled
This commit is contained in:
Qliemillar 2018-07-19 09:03:40 -06:00 committed by GitHub
commit 3466d944fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1922,7 +1922,11 @@ function applyEntityProperties(data) {
Entities.deleteEntity(entityID);
}
selectionManager.setSelections(selectedEntityIDs);
// We might be getting an undo while edit.js is disabled. If that is the case, don't set
// our selections, causing the edit widgets to display.
if (isActive) {
selectionManager.setSelections(selectedEntityIDs);
}
}
// For currently selected entities, push a command to the UndoStack that uses the current entity properties for the