feat: 优化时间轴

This commit is contained in:
tongtong committed 2026-09-18 00:52:28 +08:00
1 parent e66e3374bf
commit 8645ea3007
19 files changed
+1538 -391

No files matched your search

+3 -3
View File
@@ -345,8 +345,8 @@ export function ViewportToolbar({
async function handleCapture(preset: "current" | "four" | "twelve") {
try {
const targetCameraId =
viewMode === "director" ? addCameraShot(getViewportCameraSnapshot?.()) : activeCameraId;
// 复用当前选中的机位承接截图,避免每次点截图都新增一个机位(四方位 / 十二方位尤其明显)
const targetCameraId = activeCameraId ?? addCameraShot(getViewportCameraSnapshot?.());
setViewMode("camera");
await waitForNextAnimationFrame();
@@ -507,8 +507,8 @@ export function ViewportToolbar({
},
{ label: "模型库", icon: Boxes, onClick: toggleModelLibrary },
{ label: "添加机位", icon: Video, onClick: addCameraFromViewport },
{ label: "当前视角截图", icon: Camera, onClick: () => void handleCapture("current") },
{ label: "选择画幅比例", icon: Ratio, onClick: toggleAspectRatioPanel },
{ label: "当前视角截图", icon: Camera, onClick: () => void handleCapture("current") },
{ label: "四方位截图", icon: Grid2X2, onClick: () => void handleCapture("four") },
{ label: "十二方位截图", icon: Grid3X3, onClick: () => void handleCapture("twelve") },
{ label: "全屏", icon: Expand, onClick: toggleViewportPanelsCollapsed },