add option to load normals with model

This commit is contained in:
Stewart Allen 2022-01-05 09:29:27 -05:00
commit 098fd9bb7e
4 changed files with 11 additions and 18 deletions

View file

@ -329,6 +329,7 @@ let util = mesh.util = {
// bounding box workaround adapted from:
// https://discourse.threejs.org/t/bounding-box-bigger-than-concave-object-extrudegeometry/26073/2
// https://discourse.threejs.org/t/invalid-bounds-generated-for-some-orientations/33205
box3expand(box3, object) {
let geometry = object.geometry;
object.updateWorldMatrix(geometry ? true : false, false);