add option to load normals with model
This commit is contained in:
parent
4916a055eb
commit
098fd9bb7e
4 changed files with 11 additions and 18 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue