|
@@ -94,9 +94,7 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
|
|
|
|
|
|
}
|
|
|
|
|
|
- this.attributes[ name ] = attribute;
|
|
|
-
|
|
|
- return this;
|
|
|
+ return this.setAttribute( name, attribute );
|
|
|
|
|
|
},
|
|
|
|
|
@@ -106,6 +104,14 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
|
|
|
|
|
|
},
|
|
|
|
|
|
+ setAttribute: function ( name, attribute ) {
|
|
|
+
|
|
|
+ this.attributes[ name ] = attribute;
|
|
|
+
|
|
|
+ return this;
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
removeAttribute: function ( name ) {
|
|
|
|
|
|
delete this.attributes[ name ];
|