Merge branch 'main' into simulation
This commit is contained in:
@@ -44,11 +44,13 @@ const BoundingBox = ({ boundingBoxRef }: any) => {
|
||||
};
|
||||
}, [selectedAssets]);
|
||||
|
||||
const savedTheme: string | null = localStorage.getItem("theme") || "light";
|
||||
|
||||
return (
|
||||
<>
|
||||
{points.length > 0 && (
|
||||
<>
|
||||
<Line points={points} color="yellow" lineWidth={2.5} segments />
|
||||
<Line points={points} color={savedTheme === "dark" ? "#c4abf1" : "#6f42c1"} lineWidth={2.7} segments />
|
||||
<mesh ref={boundingBoxRef} visible={false} position={boxProps.position}>
|
||||
<boxGeometry args={boxProps.args} />
|
||||
<meshBasicMaterial />
|
||||
|
||||
Reference in New Issue
Block a user