mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 08:49:05 +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) {
|
onMove: function(event) {
|
||||||
pickRay = generalComputePickRay(event.x, event.y);
|
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)) {
|
if (usePreviousPickRay(pickRay.direction, previousPickRay.direction, pickNormal)) {
|
||||||
pickRay = previousPickRay;
|
pickRay = previousPickRay;
|
||||||
}
|
}
|
||||||
|
@ -2104,6 +2106,8 @@ SelectionDisplay = (function() {
|
||||||
var localDeltaPivot = deltaPivot;
|
var localDeltaPivot = deltaPivot;
|
||||||
var localSigns = signs;
|
var localSigns = signs;
|
||||||
var pickRay = generalComputePickRay(event.x, event.y);
|
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)) {
|
if (usePreviousPickRay(pickRay.direction, previousPickRay.direction, planeNormal)) {
|
||||||
pickRay = previousPickRay;
|
pickRay = previousPickRay;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue