1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 04:12:02 +08:00
This commit is contained in:
Kevin LEVRON 2021-03-20 18:03:10 +01:00 committed by GitHub
parent 5134ff91e6
commit 2be60d1fe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,8 +38,7 @@ export default {
parent = parent.$parent; parent = parent.$parent;
} }
if (!this._parent) console.error('Missing parent (Scene, Group...)'); if (!this._parent) console.error('Missing parent (Scene, Group...)');
else this.$emit('ready', this);
this.$emit('ready', this);
}, },
add(o) { this.o3d.add(o); }, add(o) { this.o3d.add(o); },
remove(o) { this.o3d.remove(o); }, remove(o) { this.o3d.remove(o); },