Skip to content

Commit

Permalink
perf(picking): don't pick atmosphere layer
Browse files Browse the repository at this point in the history
  • Loading branch information
jailln authored and mgermerie committed Sep 12, 2022
1 parent ba33056 commit 069b2dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Core/View.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 069b2dd

Please sign in to comment.