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:
parent
dcd26ce880
commit
0a8f1ee88f
@ -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() : []
|
||||||
|
Loading…
Reference in New Issue
Block a user