Pārlūkot izejas kodu

GLTFLoader: Remove special case for normalized skin weights (#25469)

Don McCurdy 2 gadi atpakaļ
vecāks
revīzija
13a4fe18c9
1 mainītis faili ar 2 papildinājumiem un 3 dzēšanām
  1. 2 3
      examples/jsm/loaders/GLTFLoader.js

+ 2 - 3
examples/jsm/loaders/GLTFLoader.js

@@ -3568,10 +3568,9 @@ class GLTFParser {
 						? new SkinnedMesh( geometry, material )
 						: new Mesh( geometry, material );
 
-					if ( mesh.isSkinnedMesh === true && ! mesh.geometry.attributes.skinWeight.normalized ) {
+					if ( mesh.isSkinnedMesh === true ) {
 
-						// we normalize floating point skin weight array to fix malformed assets (see #15319)
-						// it's important to skip this for non-float32 data since normalizeSkinWeights assumes non-normalized inputs
+						// normalize skin weights to fix malformed assets (see #15319)
 						mesh.normalizeSkinWeights();
 
 					}