From 4d3a5257881bebb085ecb9a788b505943d58125d Mon Sep 17 00:00:00 2001 From: Zishan Rahman Date: Fri, 30 Jan 2026 08:33:20 +0000 Subject: [PATCH] Refactor to use disableGizmos in turnOffAllGizmos instead of repeating 4 lines of code --- ui/gizmos.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ui/gizmos.js b/ui/gizmos.js index 5cab2881..c5facf38 100644 --- a/ui/gizmos.js +++ b/ui/gizmos.js @@ -1166,10 +1166,7 @@ function turnOffAllGizmos() { resetBoundingBoxVisibilityIfManuallyChanged(gizmoManager.attachedMesh); resetAttachedMeshIfMeshAttached(); gizmoManager.attachToMesh(null); - gizmoManager.positionGizmoEnabled = false; - gizmoManager.rotationGizmoEnabled = false; - gizmoManager.scaleGizmoEnabled = false; - gizmoManager.boundingBoxGizmoEnabled = false; + disableGizmos(); } // Track DO sections and their associated blocks for cleanup