Skip to content

Commit

Permalink
Update super-sky.js
Browse files Browse the repository at this point in the history
small bugfix to enable turning off shadows.
  • Loading branch information
kylebakerio authored Sep 4, 2021
1 parent f22780c commit 4be09b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion super-sky.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ AFRAME.registerComponent('super-sky', {
}
if (this.changed('sunbeamtarget')) {
if (this.data.debug) console.warn("sunbeamtarget update")
this.sunbeam.setAttribute('light', 'target', this.data.sunbeamtarget)
this.sunbeam?.setAttribute('light', 'target', this.data.sunbeamtarget)
}

if (firstUpdate) return
Expand Down

0 comments on commit 4be09b2

Please sign in to comment.