Attempt to fix issue with cube click detection

This commit is contained in:
JannisX11 2021-04-11 23:09:56 +02:00
parent 5ef10e4202
commit 6076d8856f

View File

@ -427,6 +427,7 @@ const Canvas = {
//mesh.geometry.translate(-cube.origin[0], -cube.origin[1], -cube.origin[2])
mesh.rotation.set(0, 0, 0)
mesh.geometry.computeBoundingBox()
mesh.geometry.computeBoundingSphere()
if (Format.rotate_cubes) {
if (cube.rotation !== undefined) {