Skip to content

Commit d1af452

Browse files
committed
Migrate from deprecated LinePrecision
1 parent 927087f commit d1af452

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/visualization/interaction/MouseHandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ ROS3D.MouseHandler.prototype.processDomEvent = function(domEvent) {
7171
var mousePos = new THREE.Vector2(deviceX, deviceY);
7272

7373
var mouseRaycaster = new THREE.Raycaster();
74-
mouseRaycaster.linePrecision = 0.001;
74+
mouseRaycaster.params.Line.threshold = 0.001;
7575
mouseRaycaster.setFromCamera(mousePos, this.camera);
7676
var mouseRay = mouseRaycaster.ray;
7777

0 commit comments

Comments
 (0)