Skip to content

Commit 18d3a94

Browse files
yarous224floryst
authored andcommitted
fix(PointPicker): Fixed pointId would be overwritten with multiple actors
1 parent 1ca5ba1 commit 18d3a94

File tree

1 file changed

+4
-1
lines changed
  • Sources/Rendering/Core/PointPicker

1 file changed

+4
-1
lines changed

Sources/Rendering/Core/PointPicker/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,10 @@ function vtkPointPicker(publicAPI, model) {
145145
}
146146
}
147147

148-
model.pointId = minPtId;
148+
if (minPtId > -1 && tMin < model.globalTMin) {
149+
model.globalTMin = tMin;
150+
model.pointId = minPtId;
151+
}
149152
return tMin;
150153
};
151154
}

0 commit comments

Comments
 (0)