From b073f738b2aa88e415041c92791428d6fd35e3cc Mon Sep 17 00:00:00 2001 From: Kevin Levron Date: Mon, 19 Apr 2021 01:28:09 +0200 Subject: [PATCH] object3d userData --- src/core/Object3D.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Object3D.ts b/src/core/Object3D.ts index cfffa7d..a995001 100644 --- a/src/core/Object3D.ts +++ b/src/core/Object3D.ts @@ -29,12 +29,12 @@ export default defineComponent({ initObject3D(o3d: Object3D) { this.o3d = o3d - o3d.userData = this.userData this.$emit('created', o3d) bindProp(this, 'position', o3d) bindProp(this, 'rotation', o3d) bindProp(this, 'scale', o3d) + bindProp(this, 'userData', o3d.userData) // TODO : fix lookat.x if (this.lookAt) o3d.lookAt(this.lookAt.x, this.lookAt.y, this.lookAt.z)