|
@@ -55,7 +55,6 @@ import {
|
|
|
RGBAFormat,
|
|
|
RGBFormat,
|
|
|
RepeatWrapping,
|
|
|
- Scene,
|
|
|
Skeleton,
|
|
|
SkinnedMesh,
|
|
|
Sphere,
|
|
@@ -3106,7 +3105,7 @@ var GLTFLoader = ( function () {
|
|
|
/**
|
|
|
* Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#scenes
|
|
|
* @param {number} sceneIndex
|
|
|
- * @return {Promise<Scene>}
|
|
|
+ * @return {Promise<Group>}
|
|
|
*/
|
|
|
GLTFParser.prototype.loadScene = function () {
|
|
|
|
|
@@ -3215,7 +3214,9 @@ var GLTFLoader = ( function () {
|
|
|
var sceneDef = this.json.scenes[ sceneIndex ];
|
|
|
var parser = this;
|
|
|
|
|
|
- var scene = new Scene();
|
|
|
+ // Loader returns Group, not Scene.
|
|
|
+ // See: https://github.com/mrdoob/three.js/issues/18342#issuecomment-578981172
|
|
|
+ var scene = new Group();
|
|
|
if ( sceneDef.name ) scene.name = sceneDef.name;
|
|
|
|
|
|
assignExtrasToUserData( scene, sceneDef );
|