From 069b2dde04fe66b7f40c5423fbb1c37fabf82c38 Mon Sep 17 00:00:00 2001 From: Vincent JAILLOT Date: Wed, 3 Aug 2022 12:43:25 +0200 Subject: [PATCH] perf(picking): don't pick atmosphere layer --- src/Core/View.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Core/View.js b/src/Core/View.js index 37eeadd03f..20e3ddbed3 100644 --- a/src/Core/View.js +++ b/src/Core/View.js @@ -739,6 +739,9 @@ class View extends THREE.EventDispatcher { const mouse = (mouseOrEvt instanceof Event) ? this.eventToViewCoords(mouseOrEvt) : mouseOrEvt; for (const source of sources) { + if (source.isAtmosphere) { + continue; + } if (source.isGeometryLayer) { if (!source.ready) { console.warn('view.pickObjectAt : layer is not ready : ', source);