Skip to content

Commit

Permalink
Merge pull request #312 from 3DStreet/ignory-raycaster-sky
Browse files Browse the repository at this point in the history
add attribute to ignore raycaster on env-sky element
  • Loading branch information
kfarr committed Jul 10, 2023
2 parents 4a63885 + 0d720a8 commit 050ff4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ AFRAME.registerComponent('street-environment', {
this.sky = document.createElement('a-sky');
const sky = this.sky;
sky.setAttribute('id', 'env-sky');
sky.setAttribute('data-ignore-raycaster', '');
el.appendChild(sky);
},
update: function (oldData) {
Expand Down

0 comments on commit 050ff4e

Please sign in to comment.