Browse Source

Update GLTFLoader.js

[JSDoc] Specify that loadMesh return type can include `THREE.Group`
Daniel Hritzkiv 7 years ago
parent
commit
219f3eb13f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/loaders/GLTFLoader.js

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

@@ -1943,7 +1943,7 @@ THREE.GLTFLoader = ( function () {
 	/**
 	/**
 	 * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#meshes
 	 * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#meshes
 	 * @param {number} meshIndex
 	 * @param {number} meshIndex
-	 * @return {Promise<THREE.Mesh|THREE.SkinnedMesh>}
+	 * @return {Promise<THREE.Group|THREE.Mesh|THREE.SkinnedMesh>}
 	 */
 	 */
 	GLTFParser.prototype.loadMesh = function ( meshIndex ) {
 	GLTFParser.prototype.loadMesh = function ( meshIndex ) {