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 {
|
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 [];
|
||||||
|
Loading…
Reference in New Issue
Block a user