Skip to content

Commit

Permalink
use color.set
Browse files Browse the repository at this point in the history
  • Loading branch information
klevron committed Mar 13, 2021
1 parent 291444e commit 6c37b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 6c37b1e

Please sign in to comment.