From 595396507dbedbd0ff678945cd7c425db736f759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=94?= Date: Sun, 30 Jun 2024 11:26:30 +0200 Subject: [PATCH] fix: pivot, enabled --- src/web/pivotControls/index.tsx | 52 +++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 22 deletions(-) diff --git a/src/web/pivotControls/index.tsx b/src/web/pivotControls/index.tsx index 411e028a0..57b682cff 100644 --- a/src/web/pivotControls/index.tsx +++ b/src/web/pivotControls/index.tsx @@ -259,28 +259,36 @@ export const PivotControls: ForwardRefComponent - {enabled && ( - - {!disableAxes && activeAxes[0] && } - {!disableAxes && activeAxes[1] && } - {!disableAxes && activeAxes[2] && } - {!disableSliders && activeAxes[0] && activeAxes[1] && } - {!disableSliders && activeAxes[0] && activeAxes[2] && } - {!disableSliders && activeAxes[2] && activeAxes[1] && } - {!disableRotations && activeAxes[0] && activeAxes[1] && ( - - )} - {!disableRotations && activeAxes[0] && activeAxes[2] && ( - - )} - {!disableRotations && activeAxes[2] && activeAxes[1] && ( - - )} - {!disableScaling && activeAxes[0] && } - {!disableScaling && activeAxes[1] && } - {!disableScaling && activeAxes[2] && } - - )} + + {enabled && ( + <> + {!disableAxes && activeAxes[0] && } + {!disableAxes && activeAxes[1] && } + {!disableAxes && activeAxes[2] && } + {!disableSliders && activeAxes[0] && activeAxes[1] && ( + + )} + {!disableSliders && activeAxes[0] && activeAxes[2] && ( + + )} + {!disableSliders && activeAxes[2] && activeAxes[1] && ( + + )} + {!disableRotations && activeAxes[0] && activeAxes[1] && ( + + )} + {!disableRotations && activeAxes[0] && activeAxes[2] && ( + + )} + {!disableRotations && activeAxes[2] && activeAxes[1] && ( + + )} + {!disableScaling && activeAxes[0] && } + {!disableScaling && activeAxes[1] && } + {!disableScaling && activeAxes[2] && } + + )} + {children}