|
@@ -97,12 +97,10 @@ Object.assign( Matrix3.prototype, {
|
|
|
|
|
|
applyToBufferAttribute: function () {
|
|
|
|
|
|
- var v1;
|
|
|
+ var v1 = new Vector3();
|
|
|
|
|
|
return function applyToBufferAttribute( attribute ) {
|
|
|
|
|
|
- if ( v1 === undefined ) v1 = new Vector3();
|
|
|
-
|
|
|
for ( var i = 0, l = attribute.count; i < l; i ++ ) {
|
|
|
|
|
|
v1.x = attribute.getX( i );
|