mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 18:17:08 +02:00
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:
commit
3466d944fb
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue