mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:24:03 +02:00
comment
This commit is contained in:
parent
2a7d146661
commit
ed56f09fcf
1 changed files with 4 additions and 0 deletions
|
@ -1795,6 +1795,8 @@ SelectionDisplay = (function() {
|
|||
},
|
||||
onMove: function(event) {
|
||||
pickRay = generalComputePickRay(event.x, event.y);
|
||||
|
||||
// Use previousPickRay if new pickRay will cause resulting rayPlaneIntersection values to wrap around
|
||||
if (usePreviousPickRay(pickRay.direction, previousPickRay.direction, pickNormal)) {
|
||||
pickRay = previousPickRay;
|
||||
}
|
||||
|
@ -2104,6 +2106,8 @@ SelectionDisplay = (function() {
|
|||
var localDeltaPivot = deltaPivot;
|
||||
var localSigns = signs;
|
||||
var pickRay = generalComputePickRay(event.x, event.y);
|
||||
|
||||
// Use previousPickRay if new pickRay will cause resulting rayPlaneIntersection values to wrap around
|
||||
if (usePreviousPickRay(pickRay.direction, previousPickRay.direction, planeNormal)) {
|
||||
pickRay = previousPickRay;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue