Skip to content

Commit

Permalink
DirectionalLight: Refactor setting 'matrixAutoUpdate'
Browse files Browse the repository at this point in the history
  • Loading branch information
Vatroslav Vrbanic committed Dec 18, 2021
1 parent 63b7aaa commit 1b54556
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/DirectionalLight.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ This is a **svelthree** _DirectionalLight_ Component.
light = new DirectionalLight()
light.userData.svelthreeComponent = self
$: {
if (light) {
light.matrixAutoUpdate = scene.matrixAutoUpdate ? true : false
}
}
// #endregion
// #region --- Optional Attributes
Expand Down

0 comments on commit 1b54556

Please sign in to comment.