1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 04:12:02 +08:00

fix EffectPass (emits)

This commit is contained in:
Kevin Levron 2021-04-01 21:54:58 +02:00
parent a583889060
commit 36a7e7f519

View File

@ -1,6 +1,6 @@
export default { export default {
inject: ['three', 'passes'], inject: ['three', 'passes'],
events: ['ready'], emits: ['ready'],
beforeMount() { beforeMount() {
if (!this.passes) { if (!this.passes) {
console.error('Missing parent EffectComposer'); console.error('Missing parent EffectComposer');
@ -14,7 +14,7 @@ export default {
this.passes.push(pass); this.passes.push(pass);
this.pass = pass; this.pass = pass;
this.$emit('ready', pass); this.$emit('ready', pass);
} },
}, },
render() { render() {
return []; return [];