mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 02:52:57 +02:00
Fix Create app selection updating when entities are deleted
This commit is contained in:
parent
3c081c4bf8
commit
e8154b5df1
1 changed files with 11 additions and 11 deletions
|
@ -475,18 +475,18 @@ var toolBar = (function () {
|
||||||
var DELETE_ENTITY_TIMER_TIMEOUT = 100;
|
var DELETE_ENTITY_TIMER_TIMEOUT = 100;
|
||||||
|
|
||||||
function checkDeletedEntityAndUpdate(entityID) {
|
function checkDeletedEntityAndUpdate(entityID) {
|
||||||
// Allow for multiple entity deletes before updating the entity list.
|
if (selectionManager.selections.indexOf(entityID) !== -1) {
|
||||||
entitiesToDelete.push(entityID);
|
// Allow for multiple entity deletes before updating the entities selected.
|
||||||
if (deletedEntityTimer !== null) {
|
entitiesToDelete.push(entityID);
|
||||||
Script.clearTimeout(deletedEntityTimer);
|
if (deletedEntityTimer !== null) {
|
||||||
|
Script.clearTimeout(deletedEntityTimer);
|
||||||
|
}
|
||||||
|
deletedEntityTimer = Script.setTimeout(function () {
|
||||||
|
selectionManager.removeEntities(entitiesToDelete);
|
||||||
|
entitiesToDelete = [];
|
||||||
|
deletedEntityTimer = null;
|
||||||
|
}, DELETE_ENTITY_TIMER_TIMEOUT);
|
||||||
}
|
}
|
||||||
deletedEntityTimer = Script.setTimeout(function () {
|
|
||||||
selectionManager.removeEntities(entitiesToDelete);
|
|
||||||
entityListTool.clearEntityList();
|
|
||||||
entityListTool.sendUpdate();
|
|
||||||
entitiesToDelete = [];
|
|
||||||
deletedEntityTimer = null;
|
|
||||||
}, DELETE_ENTITY_TIMER_TIMEOUT);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function initialize() {
|
function initialize() {
|
||||||
|
|
Loading…
Reference in a new issue