fixed scoping issue
This commit is contained in:
parent
b4563afa6e
commit
2d481ae649
File diff suppressed because one or more lines are too long
|
@ -3,7 +3,6 @@ import { Matrix4, Vector3, Vector4 } from "three";
|
||||||
let matrixRotation = new Matrix4().makeRotationX(90 * Math.PI / 180);
|
let matrixRotation = new Matrix4().makeRotationX(90 * Math.PI / 180);
|
||||||
let matrixScale = new Matrix4().makeScale(10, 10, 10);
|
let matrixScale = new Matrix4().makeScale(10, 10, 10);
|
||||||
let vertex = new Vector3();
|
let vertex = new Vector3();
|
||||||
let geometry = mesh.geometry;
|
|
||||||
|
|
||||||
export function parse(mesh) {
|
export function parse(mesh) {
|
||||||
if (!mesh.isMesh) {
|
if (!mesh.isMesh) {
|
||||||
|
@ -11,6 +10,7 @@ export function parse(mesh) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let geometry = mesh.geometry;
|
||||||
|
|
||||||
if (geometry.isBufferGeometry) {
|
if (geometry.isBufferGeometry) {
|
||||||
var newGeometry = geometry.clone(geometry);
|
var newGeometry = geometry.clone(geometry);
|
||||||
|
|
Loading…
Reference in New Issue