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

This commit is contained in:
tongtong committed 2026-09-17 19:39:24 +08:00
1 parent 8d67f17a84
commit e66e3374bf
19 files changed
+633 -58

No files matched your search

+3 -1
View File
@@ -380,7 +380,9 @@ it("shares the scene transform with the ground plane so the grid never becomes a
render(<App />);
const grid = screen.getByTestId("viewport-grid");
const sceneGroup = grid.closest("group");
// 网格被包在「导出时隐藏」的 group 里,再外层才是与地面共享变换的场景 group
const gridWrapper = grid.closest("group");
const sceneGroup = gridWrapper?.parentElement?.closest("group");
// 网格与地面同在场景组内:共享场景平移/旋转/缩放,不会各自留在不同坐标空间
expect(sceneGroup).not.toBeNull();