mirror of
https://github.com/overte-org/overte.git
synced 2025-04-11 04:12:09 +02:00
Bug fix: CTRL-Click was inverting the selection.
Bug fix: EntityList, CTRL-Click was adding the last selected entity as the first selection the selection stack. The first selected item was systematically the last item of the selection. This was causing unpredictable results with "Parent Entities To The Last Selected". (This bug becomes evident by highlighting the "Last Selected" in the entity list.
This commit is contained in:
parent
1167ce7a1c
commit
38e15b6208
1 changed files with 2 additions and 2 deletions
|
@ -770,10 +770,10 @@ function loaded() {
|
|||
let selectedIndex = selectedEntities.indexOf(entityID);
|
||||
if (selectedIndex >= 0) {
|
||||
selection = [];
|
||||
selection = selection.concat(selectedEntities);
|
||||
selection = selectedEntities.concat(selection);
|
||||
selection.splice(selectedIndex, 1);
|
||||
} else {
|
||||
selection = selection.concat(selectedEntities);
|
||||
selection = selectedEntities.concat(selection);
|
||||
}
|
||||
} else if (clickEvent.shiftKey && selectedEntities.length > 0) {
|
||||
let previousItemFound = -1;
|
||||
|
|
Loading…
Reference in a new issue