提交 f216c35b 编写于 作者: M Mr.doob

BufferAttribute: More robust array check. Fixes 3d2dd7ab.

上级 da9f70c7
......@@ -10,7 +10,7 @@ import { _Math } from '../math/Math';
function BufferAttribute( array, itemSize, normalized ) {
if ( array.buffer instanceof ArrayBuffer === false ) {
if ( Array.isArray( array ) ) {
throw new TypeError( 'THREE.BufferAttribute: array should be a Typed Array.' );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册