From 2dc87c91d2ad137aaa58defc65386d7d7aaea305 Mon Sep 17 00:00:00 2001 From: Davey van der Woert Date: Thu, 25 Jan 2024 20:33:54 +0000 Subject: [PATCH] trying to prevent errors --- plugins/three/src/scene.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/three/src/scene.ts b/plugins/three/src/scene.ts index 16efb0af..86f4e384 100644 --- a/plugins/three/src/scene.ts +++ b/plugins/three/src/scene.ts @@ -25,7 +25,7 @@ export function scene(scene: Scene, opts: SceneSettings = {}): Layer { // Background if (scene.background instanceof Color) { background.push(new ColorControl(scene, 'background').range(1)); - } else if (scene.background) { + } else if (scene.background && scene.background?.source.data) { background.push( new ImageControl(scene.background?.source, 'data'), new NumberControl(scene, 'backgroundIntensity').range(0, 1),