From d0098dde0127ce95708c0107b5712b0277038d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Etourneau=20K=C3=A9vin?= <39763266+ketourneau@users.noreply.github.com> Date: Wed, 20 Sep 2023 17:42:47 +0200 Subject: [PATCH] fix(picking): Fix point reference of picking (#2192) --- src/Core/Picking.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Picking.js b/src/Core/Picking.js index 54612514d2..0fa0dfdc8f 100644 --- a/src/Core/Picking.js +++ b/src/Core/Picking.js @@ -185,7 +185,7 @@ export default { const dist = pointPosCoord.spatialEuclideanDistanceTo(cameraPosCoord); result.push({ object: o, - point: pointPos, // the position of the point in the 3D view. Same name and value than what's returned by pickObjectsAt + point: pointPos.clone(), // the position of the point in the 3D view. Same name and value than what's returned by pickObjectsAt index: candidates[i].index, distance: dist, layer,