From 47c3b2de0e723feabc871110e5b10f226a954aea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sat, 29 Jun 2024 13:35:06 -0500 Subject: [PATCH] fix: mino line depression disparity on live updates --- .../tools/tankopedia/[id]/components/QuickInputs/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/tools/tankopedia/[id]/components/QuickInputs/index.tsx b/src/app/tools/tankopedia/[id]/components/QuickInputs/index.tsx index ffeb8e8ef..6983b22e1 100644 --- a/src/app/tools/tankopedia/[id]/components/QuickInputs/index.tsx +++ b/src/app/tools/tankopedia/[id]/components/QuickInputs/index.tsx @@ -38,7 +38,9 @@ export function RotationInputs() { function handleTransformEvent({ pitch, yaw }: ModelTransformEventData) { if (!pitchInput.current || !yawInput.current) return; - pitchInput.current.value = (-radToDeg(pitch)).toFixed(1); + pitchInput.current.value = ( + -radToDeg(pitch) + (tankModelDefinition.turretRotation?.pitch ?? 0) + ).toFixed(1); if (yaw === undefined) return;