浏览代码

GLTFLoader: Rename loadAttributeAccessor to assignAttributeAccessor

Takahiro 6 年之前
父节点
当前提交
1a1ad42b30
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      examples/js/loaders/GLTFLoader.js

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

@@ -2303,7 +2303,7 @@ THREE.GLTFLoader = ( function () {
 
 
 		var pending = [];
 		var pending = [];
 
 
-		function loadAttributeAccessor( accessorIndex, attributeName ) {
+		function assignAttributeAccessor( accessorIndex, attributeName ) {
 
 
 			return parser.getDependency( 'accessor', accessorIndex )
 			return parser.getDependency( 'accessor', accessorIndex )
 				.then( function ( accessor ) {
 				.then( function ( accessor ) {
@@ -2323,7 +2323,7 @@ THREE.GLTFLoader = ( function () {
 			// Skip attributes already provided by e.g. Draco extension.
 			// Skip attributes already provided by e.g. Draco extension.
 			if ( threeAttributeName in geometry.attributes ) continue;
 			if ( threeAttributeName in geometry.attributes ) continue;
 
 
-			pending.push( loadAttributeAccessor( attributes[ gltfAttributeName ], threeAttributeName ) );
+			pending.push( assignAttributeAccessor( attributes[ gltfAttributeName ], threeAttributeName ) );
 
 
 		}
 		}