diff --git a/src/models/GLTF.js b/src/models/GLTF.js index ddb9c83..c414b09 100644 --- a/src/models/GLTF.js +++ b/src/models/GLTF.js @@ -3,13 +3,14 @@ import Object3D from '../core/Object3D.js'; export default { extends: Object3D, + emits: ['loaded'], props: { src: String, - cameraPosition: Object, }, created() { const loader = new GLTFLoader(); loader.load(this.src, (gltf) => { + this.$emit('loaded', gltf); this.initObject3D(gltf.scene); }); },