|
@@ -353,9 +353,11 @@ Object.assign( THREE.BufferGeometry.prototype, THREE.EventDispatcher.prototype,
|
|
|
|
|
|
}
|
|
|
|
|
|
+ var attribute;
|
|
|
+
|
|
|
if ( geometry.verticesNeedUpdate === true ) {
|
|
|
|
|
|
- var attribute = this.attributes.position;
|
|
|
+ attribute = this.attributes.position;
|
|
|
|
|
|
if ( attribute !== undefined ) {
|
|
|
|
|
@@ -370,7 +372,7 @@ Object.assign( THREE.BufferGeometry.prototype, THREE.EventDispatcher.prototype,
|
|
|
|
|
|
if ( geometry.normalsNeedUpdate === true ) {
|
|
|
|
|
|
- var attribute = this.attributes.normal;
|
|
|
+ attribute = this.attributes.normal;
|
|
|
|
|
|
if ( attribute !== undefined ) {
|
|
|
|
|
@@ -385,7 +387,7 @@ Object.assign( THREE.BufferGeometry.prototype, THREE.EventDispatcher.prototype,
|
|
|
|
|
|
if ( geometry.colorsNeedUpdate === true ) {
|
|
|
|
|
|
- var attribute = this.attributes.color;
|
|
|
+ attribute = this.attributes.color;
|
|
|
|
|
|
if ( attribute !== undefined ) {
|
|
|
|
|
@@ -400,7 +402,7 @@ Object.assign( THREE.BufferGeometry.prototype, THREE.EventDispatcher.prototype,
|
|
|
|
|
|
if ( geometry.uvsNeedUpdate ) {
|
|
|
|
|
|
- var attribute = this.attributes.uv;
|
|
|
+ attribute = this.attributes.uv;
|
|
|
|
|
|
if ( attribute !== undefined ) {
|
|
|
|
|
@@ -415,7 +417,7 @@ Object.assign( THREE.BufferGeometry.prototype, THREE.EventDispatcher.prototype,
|
|
|
|
|
|
if ( geometry.lineDistancesNeedUpdate ) {
|
|
|
|
|
|
- var attribute = this.attributes.lineDistance;
|
|
|
+ attribute = this.attributes.lineDistance;
|
|
|
|
|
|
if ( attribute !== undefined ) {
|
|
|
|