fix: 优化空格播放和截图角色标签对不上

This commit is contained in:
2026-09-17 19:39:24 +08:00
parent 8d67f17a84
commit e66e3374bf
19 changed files with 633 additions and 58 deletions

View File

@@ -1,5 +1,5 @@
import { expect, it } from "vitest";
import type { SceneSettings } from "../schema/directorProject";
import { DEFAULT_GROUND_COLOR, type SceneSettings } from "../schema/directorProject";
import { getSceneGroupTransform } from "./sceneTransform";
function createScene(patch: Partial<SceneSettings> = {}): SceneSettings {
@@ -11,8 +11,10 @@ function createScene(patch: Partial<SceneSettings> = {}): SceneSettings {
panoramaYaw: 0,
panoramaRadius: 60,
showLabels: true,
captureShowGrid: false,
snapToGrid: false,
showGround: true,
groundColor: DEFAULT_GROUND_COLOR,
groundOpacity: 0.4,
groundHeight: 0,
...patch,