From 6c37b1e1cd469d8b9c169ac62382eb691d031a25 Mon Sep 17 00:00:00 2001 From: Kevin Levron Date: Sat, 13 Mar 2021 19:23:00 +0100 Subject: [PATCH] use color.set --- src/core/Scene.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Scene.js b/src/core/Scene.js index 82ef243..f757706 100644 --- a/src/core/Scene.js +++ b/src/core/Scene.js @@ -11,7 +11,7 @@ export default { setup(props) { const scene = new Scene(); if (props.background) scene.background = new Color(props.background); - watch(() => props.background, (value) => { scene.background = new Color(value); }); + watch(() => props.background, (value) => { scene.background.set(value); }); return { scene }; }, provide() {