Skip to content

Commit 7cae6bb

Browse files
committed
button_naming_fix
1 parent 7dec46e commit 7cae6bb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/labComponents/Buttons/circleAndTriangleButton.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ const Button1: React.FC<ButtonProps> = ({
4242
const mesh = child as THREE.Mesh;
4343
mesh.userData.unique_id = unique_id;
4444
mesh.userData.handleIntersect = handleClick;
45-
mesh.userData.type = "triangle_circle_button";
45+
if (typeGen === "triangleButton"){
46+
mesh.userData.type = "triangle_button";
47+
} else {
48+
mesh.userData.type = "circle_button";
49+
}
4650
}
4751
});
4852

src/labComponents/FrankHertzMainComp/tripleOutPutPowerSupply/mainComponent.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const TripleOutput: React.FC<TripleOutputProps> = ({
4141
<group ref={groupRef} position={position} scale={scale}>
4242
{model && <primitive object={model} scale={[1.25, 1.25, 1.25]} />}{" "}
4343
<LightSwitch position={[20, 17, 0.6]} unique_id = "triple_output_switch1" />
44-
<LightSwitch position={[-22, 17, 0.6]} unique_id = "triple_output_switch1" />
44+
<LightSwitch position={[-22, 17, 0.6]} unique_id = "triple_output_switch2" />
4545
</group>
4646
)
4747
}

0 commit comments

Comments
 (0)