1
0
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:
Sander Moolin 2021-05-25 16:57:37 -04:00
parent 995cdf7c49
commit 56f049a070

View File

@ -21,7 +21,9 @@ export default defineComponent({
const box = this.$refs.box as MeshPublicInterface const box = this.$refs.box as MeshPublicInterface
if (renderer && box) { if (renderer && box) {
renderer.onBeforeRender(() => { renderer.onBeforeRender(() => {
box.mesh.rotation.x += 0.01 if (box.mesh){
box.mesh.rotation.x += 0.01
}
}) })
} }
}, },