fix null object check in queryHits (#5729)

Co-authored-by: bachtiarnaomi <99959074+bachtiarnaomi@users.noreply.github.com>
This commit is contained in:
Alexandru Popovici
2025-11-05 16:07:09 +02:00
committed by GitHub
parent 4a734b0103
commit 779ac74c4c
@@ -1081,9 +1081,9 @@ export default class SpeckleRenderer {
)
if (
rvMaterial[0] && // If the rv exists
this.objectPickConfiguration.pickedObjectsFilter // If there is a pick filter
(this.objectPickConfiguration.pickedObjectsFilter // If there is a pick filter
? this.objectPickConfiguration.pickedObjectsFilter(rvMaterial) // If the pick filter passes
: true
: true)
) {
rvs.push(rvMaterial[0])
points.push(results[k].point)