|
@@ -92,10 +92,12 @@ Object.assign( Matrix3.prototype, {
|
|
|
|
|
|
applyToBufferAttribute: function () {
|
|
|
|
|
|
- var v1 = new Vector3();
|
|
|
+ var v1;
|
|
|
|
|
|
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 );
|