From fb03f2e0938d9f04adf0231a8e4d0d1a6b60cb83 Mon Sep 17 00:00:00 2001 From: Eli Sherer Date: Wed, 9 Oct 2024 10:41:28 +0300 Subject: [PATCH 1/2] Initialize debug controls with autoBalance value set from props --- src/Ecctrl.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ecctrl.tsx b/src/Ecctrl.tsx index 8140303..a1d9d0f 100644 --- a/src/Ecctrl.tsx +++ b/src/Ecctrl.tsx @@ -397,7 +397,7 @@ const Ecctrl: ForwardRefRenderFunction = ({ "AutoBalance Force", { autoBalance: { - value: true, + value: autoBalance ?? false, }, autoBalanceSpringK: { value: autoBalanceSpringK, @@ -1599,4 +1599,4 @@ export interface userDataType { characterRotated?: boolean; isOnMovingObject?: boolean; excludeEcctrlRay?: boolean; -} \ No newline at end of file +} From c8f869b6808b3b6d0249e5c60466d5e7d9b807d6 Mon Sep 17 00:00:00 2001 From: Eli Sherer Date: Wed, 9 Oct 2024 10:44:16 +0300 Subject: [PATCH 2/2] fix correct default value for autoBalance --- src/Ecctrl.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ecctrl.tsx b/src/Ecctrl.tsx index a1d9d0f..d477f8a 100644 --- a/src/Ecctrl.tsx +++ b/src/Ecctrl.tsx @@ -397,7 +397,7 @@ const Ecctrl: ForwardRefRenderFunction = ({ "AutoBalance Force", { autoBalance: { - value: autoBalance ?? false, + value: autoBalance ?? true, }, autoBalanceSpringK: { value: autoBalanceSpringK,