Procházet zdrojové kódy

Fix gltf sparse normalized (#29330)

Stéphane GINIER před 1 rokem
rodič
revize
dd7e7b7e89
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. 5 0
      examples/jsm/loaders/GLTFLoader.js

+ 5 - 0
examples/jsm/loaders/GLTFLoader.js

@@ -3153,6 +3153,9 @@ class GLTFParser {
 
 				}
 
+				// Ignore normalized since we copy from sparse
+				bufferAttribute.normalized = false;
+
 				for ( let i = 0, il = sparseIndices.length; i < il; i ++ ) {
 
 					const index = sparseIndices[ i ];
@@ -3165,6 +3168,8 @@ class GLTFParser {
 
 				}
 
+				bufferAttribute.normalized = normalized;
+
 			}
 
 			return bufferAttribute;

粤ICP备19079148号