mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 04:12:02 +08:00
Fix build error
This commit is contained in:
parent
995cdf7c49
commit
56f049a070
@ -21,7 +21,9 @@ export default defineComponent({
|
||||
const box = this.$refs.box as MeshPublicInterface
|
||||
if (renderer && box) {
|
||||
renderer.onBeforeRender(() => {
|
||||
if (box.mesh){
|
||||
box.mesh.rotation.x += 0.01
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user