From 6b3443d7616df8032fbd5123a5aefc2a3d265c38 Mon Sep 17 00:00:00 2001 From: Kevin Levron Date: Mon, 19 Apr 2021 20:49:52 +0200 Subject: [PATCH] wip: lights --- src/lights/RectAreaLight.ts | 2 +- src/lights/SpotLight.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lights/RectAreaLight.ts b/src/lights/RectAreaLight.ts index 5347b78..53fa0e5 100644 --- a/src/lights/RectAreaLight.ts +++ b/src/lights/RectAreaLight.ts @@ -18,7 +18,7 @@ export default defineComponent({ const watchProps = ['width', 'height'] watchProps.forEach(p => { // @ts-ignore - watch(() => this[p], () => { light[p] = this[p] }) + watch(() => this[p], (value) => { light[p] = value }) }) if (this.helper) { diff --git a/src/lights/SpotLight.ts b/src/lights/SpotLight.ts index e24475a..8dcd72f 100644 --- a/src/lights/SpotLight.ts +++ b/src/lights/SpotLight.ts @@ -17,7 +17,7 @@ export default defineComponent({ const watchProps = ['angle', 'decay', 'distance', 'penumbra'] watchProps.forEach(p => { // @ts-ignore - watch(() => this[p], () => { light[p] = this[p] }) + watch(() => this[p], (value) => { light[p] = value }) }) this.initLight(light)