فهرست منبع

correct AllSame mapping index

Lewy Blue 7 سال پیش
والد
کامیت
b612a65e3b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      examples/js/loaders/FBXLoader.js

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

@@ -1328,7 +1328,7 @@
 				index = vertexIndex;
 				index = vertexIndex;
 				break;
 				break;
 			case 'AllSame' :
 			case 'AllSame' :
-				index = 0;
+				index = infoObject.indices[ 0 ];
 				break;
 				break;
 			default :
 			default :
 				console.warn( 'THREE.FBXLoader: unknown attribute mapping type ' + infoObject.mappingType );
 				console.warn( 'THREE.FBXLoader: unknown attribute mapping type ' + infoObject.mappingType );