From 8b58109015f8e6e85f5706818f3533e90b0ff795 Mon Sep 17 00:00:00 2001 From: Takahiro Date: Tue, 29 Aug 2023 13:55:37 -0700 Subject: [PATCH] bitECS: Adjust Object menu button positions With the new loader enabled, some object menu buttons are overlappedna and cah be hidden by each other. This commit adjusts the buttons to avoid the problem. --- src/prefabs/object-menu.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/prefabs/object-menu.tsx b/src/prefabs/object-menu.tsx index 14bc4c09c0..46d2e08258 100644 --- a/src/prefabs/object-menu.tsx +++ b/src/prefabs/object-menu.tsx @@ -211,11 +211,11 @@ const position = { focus: [-0.25, 0.375, uiZ] as ArrayVec3, track: [ 0.25, 0.375, uiZ] as ArrayVec3, remove: [ 0, -0.375, uiZ] as ArrayVec3, - drop: [ 0, -0.625, uiZ] as ArrayVec3, - inspect: [ 0, -0.625, uiZ] as ArrayVec3, + drop: [ 0.1, -0.625, uiZ] as ArrayVec3, + inspect: [ -0.1, -0.625, uiZ] as ArrayVec3, deserializeDrawing: [ -0.3, -0.625, uiZ] as ArrayVec3, openLink: [ 0.43, -0.375, uiZ] as ArrayVec3, - refresh: [ 0.43, -0.6, uiZ] as ArrayVec3, + refresh: [ 0.3, -0.625, uiZ] as ArrayVec3, clone: [-0.43, -0.375, uiZ] as ArrayVec3, rotate: [ -0.3, -0.125, uiZ] as ArrayVec3, mirror: [ 0, -0.125, uiZ] as ArrayVec3,