Skip to content

Commit e2e3ba7

Browse files
committed
GLTFLoader: Normalize skin weights
1 parent 8b137e5 commit e2e3ba7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/js/loaders/GLTFLoader.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ THREE.GLTFLoader = ( function () {
10611061
var s3 = ppp - pp;
10621062
var s0 = 1 - s2;
10631063
var s1 = s3 - pp + p;
1064-
1064+
10651065
// Layout of keyframe output values for CUBICSPLINE animations:
10661066
// [ inTangent_1, splineVertex_1, outTangent_1, inTangent_2, splineVertex_2, ... ]
10671067
for ( var i = 0; i !== stride; i ++ ) {
@@ -2705,6 +2705,8 @@ THREE.GLTFLoader = ( function () {
27052705
? new THREE.SkinnedMesh( geometry, material )
27062706
: new THREE.Mesh( geometry, material );
27072707

2708+
if ( mesh.isSkinnedMesh === true ) mesh.normalizeSkinWeights(); // #15319
2709+
27082710
if ( primitive.mode === WEBGL_CONSTANTS.TRIANGLE_STRIP ) {
27092711

27102712
mesh.drawMode = THREE.TriangleStripDrawMode;

0 commit comments

Comments
 (0)