From f2a280b26fc0514017d113ae53e7168cfceb1337 Mon Sep 17 00:00:00 2001 From: Michael Chung <6252325+ArEnSc@users.noreply.github.com> Date: Sun, 31 Mar 2024 13:54:52 -0400 Subject: [PATCH] Adding extra parameters to send the select modal --- app/pages/PageEnigma/js/editor.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/pages/PageEnigma/js/editor.ts b/app/pages/PageEnigma/js/editor.ts index 8f879f53dd..7e5afc7f8b 100644 --- a/app/pages/PageEnigma/js/editor.ts +++ b/app/pages/PageEnigma/js/editor.ts @@ -1061,14 +1061,19 @@ class Editor { updateSelectedUI() { if (this.selected == undefined) { return; } + let pos = this.selected.position; let rot = this.selected.rotation; let scale = this.selected.scale; - + this.dispatchAppUiState({ type: APPUI_ACTION_TYPES.SHOW_CONTROLPANELS_SCENEOBJECT, payload: { currentSceneObject: { + group: "object", // TODO: add meta data to determine what it is a camera or a object or a character into prefab clips + object_uuid: this.selected.uuid, + object_name: this.selected.name, + version: this.version, objectVectors: { position: { x: parseFloat(pos.x.toFixed(2)), y: parseFloat(pos.y.toFixed(2)), z: parseFloat(pos.z.toFixed(2)) }, rotation: { x: parseFloat(rot.x.toFixed(2)), y: parseFloat(rot.y.toFixed(2)), z: parseFloat(rot.z.toFixed(2)) }, @@ -1079,7 +1084,6 @@ class Editor { }); } - // Automaticly resize scene. onWindowResize() { // Calculate the maximum possible dimensions while maintaining the aspect ratio