mirror of
https://github.com/troisjs/trois.git
synced 2024-11-23 20:02:32 +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(() => {
|
||||
box.mesh.rotation.x += 0.01
|
||||
if (box.mesh){
|
||||
box.mesh.rotation.x += 0.01
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user