Skip to content

Commit ff27558

Browse files
refactor(code): getOpacity call in cellpicker
1 parent f8ea289 commit ff27558

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Sources/Rendering/Core/Picker/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,8 @@ function vtkPicker(publicAPI, model) {
237237
const mapper = prop.getMapper();
238238
pickable = prop.getNestedPickable() && prop.getNestedVisibility();
239239

240-
if (!mapper.isA('vtkVolumeMapper')) {
241-
if (prop.getProperty().getOpacity() <= 0.0) {
242-
pickable = false;
243-
}
240+
if (prop.getProperty().getOpacity?.() <= 0.0) {
241+
pickable = false;
244242
}
245243

246244
if (pickable) {

0 commit comments

Comments
 (0)