提交 e2e3ba73 编写于 作者: M Mugen87

GLTFLoader: Normalize skin weights

上级 8b137e51
......@@ -1061,7 +1061,7 @@ THREE.GLTFLoader = ( function () {
var s3 = ppp - pp;
var s0 = 1 - s2;
var s1 = s3 - pp + p;
// Layout of keyframe output values for CUBICSPLINE animations:
// [ inTangent_1, splineVertex_1, outTangent_1, inTangent_2, splineVertex_2, ... ]
for ( var i = 0; i !== stride; i ++ ) {
......@@ -2705,6 +2705,8 @@ THREE.GLTFLoader = ( function () {
? new THREE.SkinnedMesh( geometry, material )
: new THREE.Mesh( geometry, material );
if ( mesh.isSkinnedMesh === true ) mesh.normalizeSkinWeights(); // #15319
if ( primitive.mode === WEBGL_CONSTANTS.TRIANGLE_STRIP ) {
mesh.drawMode = THREE.TriangleStripDrawMode;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册