Skip to content

Commit

Permalink
[OB-3557] fix: gizmo range
Browse files Browse the repository at this point in the history
  • Loading branch information
MAG-AdrianMeredith authored Jun 19, 2024
1 parent 1c5500e commit 4ff1bf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "playcanvas",
"version": "1.71.6",
"version": "1.71.6-MAG_OB-3557",
"author": "PlayCanvas <support@playcanvas.com>",
"homepage": "https://playcanvas.com",
"description": "PlayCanvas WebGL game engine",
Expand Down
2 changes: 1 addition & 1 deletion src/extras/gizmo/gizmo.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ class Gizmo extends EventHandler {
}

_getSelection(x, y) {
const start = this._camera.screenToWorld(x, y, 1);
const start = this._camera.screenToWorld(x, y, this._camera.nearClip);
const end = this._camera.screenToWorld(x, y, this._camera.farClip);
const dir = end.clone().sub(start).normalize();

Expand Down

0 comments on commit 4ff1bf5

Please sign in to comment.