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:
parent
a583889060
commit
36a7e7f519
@ -1,6 +1,6 @@
|
||||
export default {
|
||||
inject: ['three', 'passes'],
|
||||
events: ['ready'],
|
||||
emits: ['ready'],
|
||||
beforeMount() {
|
||||
if (!this.passes) {
|
||||
console.error('Missing parent EffectComposer');
|
||||
@ -14,7 +14,7 @@ export default {
|
||||
this.passes.push(pass);
|
||||
this.pass = pass;
|
||||
this.$emit('ready', pass);
|
||||
}
|
||||
},
|
||||
},
|
||||
render() {
|
||||
return [];
|
||||
|
Loading…
Reference in New Issue
Block a user