Browse Source

Three.Legacy: Changed Matrix3/Matrix4 .applyToBuffer()

Mugen87 8 years ago
parent
commit
040e3807df
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/Three.Legacy.js

+ 4 - 2
src/Three.Legacy.js

@@ -356,7 +356,8 @@ Object.assign( Matrix3.prototype, {
 	},
 	},
 	applyToBuffer: function( buffer, offset, length ) {
 	applyToBuffer: function( buffer, offset, length ) {
 
 
-		console.error( 'THREE.Matrix3: .applyToBuffer() has been removed. Use matrix.applyToBufferAttribute( attribute, offset, count ) instead.' );
+		console.warn( 'THREE.Matrix3: .applyToBuffer() has been removed. Use matrix.applyToBufferAttribute( attribute, offset, count ) instead.' );
+		return this.applyToBufferAttribute( buffer, offset, length );
 
 
 	}
 	}
 
 
@@ -452,7 +453,8 @@ Object.assign( Matrix4.prototype, {
 	},
 	},
 	applyToBuffer: function( buffer, offset, length ) {
 	applyToBuffer: function( buffer, offset, length ) {
 
 
-		console.error( 'THREE.Matrix4: .applyToBuffer() has been removed. Use matrix.applyToBufferAttribute( attribute, offset, count ) instead.' );
+		console.warn( 'THREE.Matrix4: .applyToBuffer() has been removed. Use matrix.applyToBufferAttribute( attribute, offset, count ) instead.' );
+		return this.applyToBufferAttribute( buffer, offset, length );
 
 
 	}
 	}