|
@@ -101,12 +101,11 @@ THREE.Geometry.prototype = {
|
|
|
|
|
|
var attributes = geometry.attributes;
|
|
var attributes = geometry.attributes;
|
|
|
|
|
|
- var indices = attributes.index !== undefined && attributes.index.array;
|
|
|
|
- var normals = attributes.normal !== undefined && attributes.normal.array;
|
|
|
|
- var colors = attributes.color !== undefined && attributes.color.array;
|
|
|
|
- var uvs = attributes.uv !== undefined && attributes.uv.array;
|
|
|
|
-
|
|
|
|
var vertices = attributes.position.array;
|
|
var vertices = attributes.position.array;
|
|
|
|
+ var indices = attributes.index !== undefined ? attributes.index.array : undefined;
|
|
|
|
+ var normals = attributes.normal !== undefined ? attributes.normal.array : undefined;
|
|
|
|
+ var colors = attributes.color !== undefined ? attributes.color.array : undefined;
|
|
|
|
+ var uvs = attributes.uv !== undefined ? attributes.uv.array : undefined;
|
|
|
|
|
|
var tempNormals = [];
|
|
var tempNormals = [];
|
|
var tempUVs = [];
|
|
var tempUVs = [];
|