diff --git a/src/core/BufferGeometry.js b/src/core/BufferGeometry.js index e3cd20f0cf153d9f4e2b30f26fbc00f848c0fc58..98774ac8b8dffae71c0b6a28130695634322e17a 100644 --- a/src/core/BufferGeometry.js +++ b/src/core/BufferGeometry.js @@ -24,6 +24,16 @@ THREE.BufferGeometry.prototype = { addAttribute: function ( name, attribute ) { + if ( attribute instanceof THREE.BufferAttribute === false ) { + + console.warn( 'DEPRECATED: BufferGeometry\'s addAttribute() now expects ( name, attribute ).' ); + + this.attributes[ name ] = { array: arguments[ 1 ], itemSize: arguments[ 2 ] }; + + return; + + } + this.attributes[ name ] = attribute; },