fixed scoping issue

This commit is contained in:
Kirk Spencer 2020-03-25 23:33:55 -07:00
parent b4563afa6e
commit 2d481ae649
2 changed files with 4 additions and 4 deletions

6
dist/saver.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,6 @@ import { Matrix4, Vector3, Vector4 } from "three";
let matrixRotation = new Matrix4().makeRotationX(90 * Math.PI / 180);
let matrixScale = new Matrix4().makeScale(10, 10, 10);
let vertex = new Vector3();
let geometry = mesh.geometry;
export function parse(mesh) {
if (!mesh.isMesh) {
@ -11,6 +10,7 @@ export function parse(mesh) {
return;
}
let geometry = mesh.geometry;
if (geometry.isBufferGeometry) {
var newGeometry = geometry.clone(geometry);