Skip to content

Commit

Permalink
fix: add gltf-model as dep of gltf-model-lod
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-liang committed May 2, 2022
1 parent dbd5833 commit bdd28b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/gltf-lod.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const LOD_THRESHOLD = 1; // meters
const CACHE_FREE_DELAY = 3000; // ms

AFRAME.registerComponent('gltf-lod-advanced', {
dependencies: ['gltf-model'],
schema: {
updateRate: {type: 'number', default: 333},
fade: {type: 'number', default: 0},
Expand Down Expand Up @@ -110,6 +111,7 @@ AFRAME.registerComponent('lod-level', {
* @brief Simple LOD swap between default (low) and detailed (high) models
*/
AFRAME.registerComponent('gltf-model-lod', {
dependencies: ['gltf-model'],
schema: {
updateRate: {type: 'number', default: 333},
retainCache: {type: 'boolean', default: false},
Expand Down

0 comments on commit bdd28b9

Please sign in to comment.