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

Skeleton: Avoid creating empty texture. See #6869.

上级 f146698a
......@@ -30,6 +30,8 @@ THREE.Skeleton = function ( bones, boneInverses, useVertexTexture ) {
var size = THREE.Math.nextPowerOfTwo( Math.sqrt( this.bones.length * 4 ) ); // 4 pixels needed for 1 matrix
if ( size === 0 ) size = 2; // Avoid creating empty texture
this.boneTextureWidth = size;
this.boneTextureHeight = size;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册