瀏覽代碼

GLTFLoader: Rename isCombinablePrimitives with isMultiPassGeometry

Takahiro 7 年之前
父節點
當前提交
0c93a4cf5e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      examples/js/loaders/GLTFLoader.js

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

@@ -1348,7 +1348,7 @@ THREE.GLTFLoader = ( function () {
 	 * @param {Array<GLTF.Primitive>} primitives
 	 * @return {Boolean}
 	 */
-	function isCombinablePrimitives( primitives ) {
+	function isMultiPassGeometry( primitives ) {
 
 		if ( primitives.length < 2 ) return false;
 
@@ -2107,7 +2107,7 @@ THREE.GLTFLoader = ( function () {
 		var extensions = this.extensions;
 		var cache = this.primitiveCache;
 
-		if ( isCombinablePrimitives( primitives ) ) {
+		if ( isMultiPassGeometry( primitives ) ) {
 
 			// We builds a single BufferGeometry with .groups from multiple primitives
 			// because all primitives share the same attributes/morph/mode and have indices.