From 3181c05e84d46ac91096e03312b661154985c264 Mon Sep 17 00:00:00 2001 From: Dhruv Arora Date: Wed, 21 Aug 2024 15:03:01 -0700 Subject: [PATCH] Fixed build errors --- .../interfaces/ConfigureGamepiecePickupInterface.tsx | 2 +- .../interfaces/scoring/ZoneConfigInterface.tsx | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/fission/src/ui/panels/configuring/assembly-config/interfaces/ConfigureGamepiecePickupInterface.tsx b/fission/src/ui/panels/configuring/assembly-config/interfaces/ConfigureGamepiecePickupInterface.tsx index ab55d8afc..bd5ceb2ce 100644 --- a/fission/src/ui/panels/configuring/assembly-config/interfaces/ConfigureGamepiecePickupInterface.tsx +++ b/fission/src/ui/panels/configuring/assembly-config/interfaces/ConfigureGamepiecePickupInterface.tsx @@ -131,7 +131,7 @@ const ConfigureGamepiecePickupInterface: React.FC = ({ select 1.5 ) - ;(gizmo.obj.material as THREE.Material).depthTest = false + ;((gizmo.obj as THREE.Mesh).material as THREE.Material).depthTest = false const deltaTransformation = Array_ThreeMatrix4(selectedRobot.intakePreferences.deltaTransformation) diff --git a/fission/src/ui/panels/configuring/assembly-config/interfaces/scoring/ZoneConfigInterface.tsx b/fission/src/ui/panels/configuring/assembly-config/interfaces/scoring/ZoneConfigInterface.tsx index 000af2dfa..2cf604724 100644 --- a/fission/src/ui/panels/configuring/assembly-config/interfaces/scoring/ZoneConfigInterface.tsx +++ b/fission/src/ui/panels/configuring/assembly-config/interfaces/scoring/ZoneConfigInterface.tsx @@ -176,7 +176,7 @@ const ZoneConfigInterface: React.FC = ({ selectedField, selecte 1.5 ) - ;(gizmo.obj.material as THREE.Material).depthTest = false + ;((gizmo.obj as THREE.Mesh).material as THREE.Material).depthTest = false const deltaTransformation = Array_ThreeMatrix4(zone.deltaTransformation) @@ -231,9 +231,8 @@ const ZoneConfigInterface: React.FC = ({ selectedField, selecte value={`${alliance[0].toUpperCase() + alliance.substring(1)} Alliance`} onClick={() => { setAlliance(alliance == "blue" ? "red" : "blue") - if (transformGizmo) { - transformGizmo.obj.material = alliance == "blue" ? redMaterial : blueMaterial - } + if (transformGizmo) + (transformGizmo.obj as THREE.Mesh).material = alliance == "blue" ? redMaterial : blueMaterial }} colorOverrideClass={`bg-match-${alliance}-alliance`} />