Skip to content

Commit

Permalink
Fixed build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhruv-0-Arora committed Aug 21, 2024
1 parent 9cd80ac commit 3181c05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const ConfigureGamepiecePickupInterface: React.FC<ConfigPickupProps> = ({ 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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const ZoneConfigInterface: React.FC<ZoneConfigProps> = ({ 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)

Expand Down Expand Up @@ -231,9 +231,8 @@ const ZoneConfigInterface: React.FC<ZoneConfigProps> = ({ 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`}
/>
Expand Down

0 comments on commit 3181c05

Please sign in to comment.