Mr.doob 5 лет назад
Родитель
Сommit
0be1a21f52
2 измененных файлов с 2 добавлено и 4 удалено
  1. 1 2
      examples/js/loaders/FBXLoader.js
  2. 1 2
      examples/jsm/loaders/FBXLoader.js

+ 1 - 2
examples/js/loaders/FBXLoader.js

@@ -1613,10 +1613,9 @@ THREE.FBXLoader = ( function () {
 
 			if ( buffers.normal.length > 0 ) {
 
-				var normalAttribute = new THREE.Float32BufferAttribute( buffers.normal, 3 );
-
 				var normalMatrix = new THREE.Matrix3().getNormalMatrix( preTransform );
 
+				var normalAttribute = new THREE.Float32BufferAttribute( buffers.normal, 3 );
 				normalAttribute.applyNormalMatrix( normalMatrix );
 
 				geo.setAttribute( 'normal', normalAttribute );

+ 1 - 2
examples/jsm/loaders/FBXLoader.js

@@ -1661,10 +1661,9 @@ var FBXLoader = ( function () {
 
 			if ( buffers.normal.length > 0 ) {
 
-				var normalAttribute = new Float32BufferAttribute( buffers.normal, 3 );
-
 				var normalMatrix = new Matrix3().getNormalMatrix( preTransform );
 
+				var normalAttribute = new Float32BufferAttribute( buffers.normal, 3 );
 				normalAttribute.applyNormalMatrix( normalMatrix );
 
 				geo.setAttribute( 'normal', normalAttribute );