Skip to content

Examples: Fix hover highlight of first instance in webgl_batch_lod_bvh. - #34998

Merged
Mugen87 merged 1 commit into
mrdoob:devfrom
MikeFernandez-Pro:batch-lod-bvh-instance-zero
Oct 14, 2026
Merged

Mugen87 merged 1 commit into
mrdoob:devfrom
MikeFernandez-Pro:batch-lod-bvh-instance-zero

Conversation

@MikeFernandez-Pro

Copy link
Copy Markdown
Contributor

Related issue: -

Description

The raycast hover code checks lastHoveredInstance and batchId for truthiness, so the instance with ID 0 is never highlighted. This PR uses !== null checks instead.

@Mugen87
Mugen87 merged commit 6c30457 into mrdoob:dev Oct 14, 2026
9 checks passed
@Mugen87 Mugen87 added this to the r187 milestone Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants