Simplify formatVec3 function in ViewportCanvas

This commit is contained in:
2026-04-02 23:06:01 +02:00
parent 6b0bb0fc52
commit d191a61b15

View File

@@ -42,11 +42,7 @@ interface ViewportCanvasProps {
onToolPreviewChange(toolPreview: ViewportToolPreview): void;
}
function formatVec3(vector: Vec3 | null): string {
if (vector === null) {
return "Move over the grid to preview a snapped placement.";
}
function formatVec3(vector: Vec3): string {
return `${vector.x}, ${vector.y}, ${vector.z}`;
}