Skip to content

Commit

Permalink
examples/gltf: Remove DracoLoader import (no longer needed) (#1386)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibgreen committed Jun 13, 2020
1 parent 3688d3e commit e1a79a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 1 addition & 3 deletions examples/showcase/gltf/app.js
Expand Up @@ -3,7 +3,6 @@
import {parse} from '@loaders.gl/core';
// eslint-disable-next-line import/no-unresolved
import {GLTFLoader} from '@loaders.gl/gltf';
import {DracoLoader} from '@loaders.gl/draco';
import '@loaders.gl/polyfills'; // text-encoding polyfill for older MS browsers
import GL from '@luma.gl/constants';
import {AnimationLoop, Timeline} from '@luma.gl/engine';
Expand Down Expand Up @@ -163,8 +162,7 @@ async function loadGLTF(urlOrPromise, gl, options) {
const data = typeof urlOrPromise === 'string' ? window.fetch(urlOrPromise) : urlOrPromise;
const gltf = await parse(data, GLTFLoader, {
...options,
gl,
DracoLoader
gl
});
const {scenes, animator} = createGLTFObjects(gl, gltf, options);

Expand Down
7 changes: 3 additions & 4 deletions examples/showcase/gltf/package.json
Expand Up @@ -9,10 +9,9 @@
"open-vr": "adb reverse tcp:8080 tcp:8080 && adb shell am start -a android.intent.action.VIEW -d http://localhost:8080/"
},
"dependencies": {
"@loaders.gl/core": "^2.1.1",
"@loaders.gl/draco": "^2.1.1",
"@loaders.gl/gltf": "^2.1.1",
"@loaders.gl/polyfills": "^2.1.1",
"@loaders.gl/core": "^2.2.0-alpha.3",
"@loaders.gl/gltf": "^2.2.0-alpha.3",
"@loaders.gl/polyfills": "^2.2.0-alpha.3",
"@luma.gl/experimental": "^8.1.0",
"@luma.gl/constants": "^8.1.0",
"@luma.gl/webgl": "^8.1.0",
Expand Down

0 comments on commit e1a79a3

Please sign in to comment.