Mr.doob 9 سال پیش
والد
کامیت
862579f741
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/core/BufferAttribute.js

+ 2 - 2
src/core/BufferAttribute.js

@@ -10,9 +10,9 @@ import { _Math } from '../math/Math';
 
 function BufferAttribute( array, itemSize, normalized ) {
 
-	if (array.buffer instanceof ArrayBuffer === false) {
+	if ( array.buffer instanceof ArrayBuffer === false ) {
 
-		throw new TypeError( 'THREE.BufferAttribute: array should be an instance of Uint8Array, Int8Array, Uint16Array, Int16Array, or Float32Array.' );
+		throw new TypeError( 'THREE.BufferAttribute: array should be a Typed Array.' );
 
 	}
 

粤ICP备19079148号