From 76727c797f7b984ade9f4c301a9ef89844b10c16 Mon Sep 17 00:00:00 2001 From: yrs Date: Sat, 9 Nov 2024 11:07:38 +0800 Subject: [PATCH] fix(PointPicker): Fixed pointId would be overwritten with multiple actors --- Sources/Rendering/Core/PointPicker/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/Rendering/Core/PointPicker/index.js b/Sources/Rendering/Core/PointPicker/index.js index 20af75ecd47..be1b50db8a1 100644 --- a/Sources/Rendering/Core/PointPicker/index.js +++ b/Sources/Rendering/Core/PointPicker/index.js @@ -145,7 +145,10 @@ function vtkPointPicker(publicAPI, model) { } } - model.pointId = minPtId; + if (minPtId > -1 && tMin < model.globalTMin) { + model.globalTMin = tMin; + model.pointId = minPtId; + } return tMin; }; }