1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 04:12:02 +08:00

fix missing scene

This commit is contained in:
Kevin Levron 2021-04-24 22:49:00 +02:00
parent dcd26ce880
commit 0a8f1ee88f

View File

@ -37,7 +37,7 @@ export default defineComponent({
const add = (o: Object3D): void => { scene.add(o) } const add = (o: Object3D): void => { scene.add(o) }
const remove = (o: Object3D): void => { scene.remove(o) } const remove = (o: Object3D): void => { scene.remove(o) }
return { add, remove } return { scene, add, remove }
}, },
render() { render() {
return this.$slots.default ? this.$slots.default() : [] return this.$slots.default ? this.$slots.default() : []