Browse Source

Change class name to have Extension suffix

Arseny Kapoulkine 5 years ago
parent
commit
60abaa0e04
2 changed files with 8 additions and 8 deletions
  1. 4 4
      examples/js/loaders/GLTFLoader.js
  2. 4 4
      examples/jsm/loaders/GLTFLoader.js

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

@@ -26,7 +26,7 @@ THREE.GLTFLoader = ( function () {
 		} );
 		this.register( function ( parser ) {
 
-			return new GLTFTextureBasisU( parser );
+			return new GLTFTextureBasisUExtension( parser );
 
 		} );
 
@@ -555,16 +555,16 @@ THREE.GLTFLoader = ( function () {
 	 * BasisU Texture Extension
 	 *
 	 * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_texture_basisu
-	 * (Link above TBD, currently in PR https://github.com/KhronosGroup/glTF/pull/1751)
+	 * (draft PR https://github.com/KhronosGroup/glTF/pull/1751)
 	 */
-	function GLTFTextureBasisU( parser ) {
+	function GLTFTextureBasisUExtension( parser ) {
 
 		this.parser = parser;
 		this.name = EXTENSIONS.KHR_TEXTURE_BASISU;
 
 	}
 
-	GLTFTextureBasisU.prototype.loadTexture = function ( textureIndex ) {
+	GLTFTextureBasisUExtension.prototype.loadTexture = function ( textureIndex ) {
 
 		var parser = this.parser;
 		var json = parser.json;

+ 4 - 4
examples/jsm/loaders/GLTFLoader.js

@@ -91,7 +91,7 @@ var GLTFLoader = ( function () {
 		} );
 		this.register( function ( parser ) {
 
-			return new GLTFTextureBasisU( parser );
+			return new GLTFTextureBasisUExtension( parser );
 
 		} );
 
@@ -620,16 +620,16 @@ var GLTFLoader = ( function () {
 	 * BasisU Texture Extension
 	 *
 	 * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_texture_basisu
-	 * (Link above TBD, currently in PR https://github.com/KhronosGroup/glTF/pull/1751)
+	 * (draft PR https://github.com/KhronosGroup/glTF/pull/1751)
 	 */
-	function GLTFTextureBasisU( parser ) {
+	function GLTFTextureBasisUExtension( parser ) {
 
 		this.parser = parser;
 		this.name = EXTENSIONS.KHR_TEXTURE_BASISU;
 
 	}
 
-	GLTFTextureBasisU.prototype.loadTexture = function ( textureIndex ) {
+	GLTFTextureBasisUExtension.prototype.loadTexture = function ( textureIndex ) {
 
 		var parser = this.parser;
 		var json = parser.json;