mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 12:57:34 +02:00
Fix entity y value jumping when translate with grid snapping enabled
This commit is contained in:
parent
b00d07b029
commit
94c097fc39
1 changed files with 2 additions and 1 deletions
|
@ -1830,7 +1830,8 @@ SelectionDisplay = (function() {
|
|||
|
||||
var dotVector = Vec3.dot(vector, projectionVector);
|
||||
vector = Vec3.multiply(dotVector, projectionVector);
|
||||
vector = grid.snapToGrid(vector);
|
||||
var gridOrigin = grid.getOrigin();
|
||||
vector = Vec3.subtract(grid.snapToGrid(Vec3.sum(vector, gridOrigin)), gridOrigin);
|
||||
|
||||
var wantDebug = false;
|
||||
if (wantDebug) {
|
||||
|
|
Loading…
Reference in a new issue