浏览代码

Merge pull request #13175 from Mugen87/dev1

WebGLRenderer: Fix first time skin render
Mr.doob 7 年之前
父节点
当前提交
f0d10aaa0f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/renderers/WebGLRenderer.js

+ 1 - 0
src/renderers/WebGLRenderer.js

@@ -1781,6 +1781,7 @@ function WebGLRenderer( parameters ) {
 						boneMatrices.set( skeleton.boneMatrices ); // copy current values
 
 						var boneTexture = new DataTexture( boneMatrices, size, size, RGBAFormat, FloatType );
+						boneTexture.needsUpdate = true;
 
 						skeleton.boneMatrices = boneMatrices;
 						skeleton.boneTexture = boneTexture;