Skip to content

Commit

Permalink
trying to prevent errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dpwoert committed Jan 25, 2024
1 parent ddfc336 commit 2dc87c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/three/src/scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 2dc87c9

Please sign in to comment.