mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
Fix edit.js from deselecting an object when trying to delete it
This commit is contained in:
parent
f48557b06b
commit
de24023a21
1 changed files with 12 additions and 1 deletions
|
@ -687,11 +687,22 @@ function mouseReleaseEvent(event) {
|
|||
}
|
||||
}
|
||||
|
||||
function wasTabletClicked(event) {
|
||||
var rayPick = Camera.computePickRay(event.x, event.y);
|
||||
var result = Overlays.findRayIntersection(rayPick, true, [HMD.tabletID, HMD.tabletScreenID, HMD.homeButtonID]);
|
||||
return result.intersects;
|
||||
}
|
||||
|
||||
function mouseClickEvent(event) {
|
||||
var wantDebug = false;
|
||||
var result, properties;
|
||||
var result, properties, tabletClicked;
|
||||
if (isActive && event.isLeftButton) {
|
||||
result = findClickedEntity(event);
|
||||
tabletClicked = wasTabletClicked(event);
|
||||
if (tabletClicked) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (result === null || result === undefined) {
|
||||
if (!event.isShifted) {
|
||||
selectionManager.clearSelections();
|
||||
|
|
Loading…
Reference in a new issue