Skip to content

Commit 61fb844

Browse files
authored
Bump THREE to r87 (#2994)
1 parent a432af0 commit 61fb844

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"present": "0.0.6",
4141
"promise-polyfill": "^3.1.0",
4242
"style-attr": "^1.0.2",
43-
"three": "^0.86.0",
43+
"three": "^0.87.0",
4444
"three-bmfont-text": "^2.1.0",
4545
"webvr-polyfill": "^0.9.36"
4646
},

‎src/components/gltf-model.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports.Component = registerComponent('gltf-model', {
99

1010
init: function () {
1111
this.model = null;
12-
this.loader = new THREE.GLTF2Loader();
12+
this.loader = new THREE.GLTFLoader();
1313
},
1414

1515
update: function () {

‎src/lib/three.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ if (THREE.Cache) {
1919
}
2020

2121
// TODO: Eventually include these only if they are needed by a component.
22-
require('three/examples/js/loaders/GLTF2Loader'); // THREE.GLTF2Loader
22+
require('three/examples/js/loaders/GLTFLoader'); // THREE.GLTFLoader
2323
require('three/examples/js/loaders/OBJLoader'); // THREE.OBJLoader
2424
require('three/examples/js/loaders/MTLLoader'); // THREE.MTLLoader
2525
require('three/examples/js/loaders/ColladaLoader'); // THREE.ColladaLoader
2626
require('../../vendor/VRControls'); // THREE.VRControls
2727
require('../../vendor/VREffect'); // THREE.VREffect
2828

2929
THREE.ColladaLoader.prototype.crossOrigin = 'anonymous';
30-
THREE.GLTF2Loader.prototype.crossOrigin = 'anonymous';
30+
THREE.GLTFLoader.prototype.crossOrigin = 'anonymous';
3131
THREE.MTLLoader.prototype.crossOrigin = 'anonymous';
3232
THREE.OBJLoader.prototype.crossOrigin = 'anonymous';
3333

‎tests/components/gltf-model.test.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ suite('gltf-model', function () {
7171
animations: animations
7272
};
7373

74-
this.sinon.stub(THREE, 'GLTF2Loader', function MockGLTFLoader () {
74+
this.sinon.stub(THREE, 'GLTFLoader', function MockGLTFLoader () {
7575
this.load = function (url, onLoad) {
7676
process.nextTick(onLoad.bind(null, gltfMock));
7777
};

0 commit comments

Comments
 (0)