From 2be60d1fe1514dae74f7592d8f1c38607fe9fd8d Mon Sep 17 00:00:00 2001 From: Kevin LEVRON Date: Sat, 20 Mar 2021 18:03:10 +0100 Subject: [PATCH] add else --- src/core/Object3D.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/Object3D.js b/src/core/Object3D.js index f720d65..1959ca2 100644 --- a/src/core/Object3D.js +++ b/src/core/Object3D.js @@ -38,8 +38,7 @@ export default { parent = parent.$parent; } if (!this._parent) console.error('Missing parent (Scene, Group...)'); - - this.$emit('ready', this); + else this.$emit('ready', this); }, add(o) { this.o3d.add(o); }, remove(o) { this.o3d.remove(o); },