fix null object check in queryHits (#5729)
Co-authored-by: bachtiarnaomi <99959074+bachtiarnaomi@users.noreply.github.com>
This commit is contained in:
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)
|
||||
|
||||
Reference in New Issue
Block a user