add ability to edit motion and object config for debug replay

This commit is contained in:
Josh Hawkins
2026-03-01 07:13:14 -06:00
parent 1102a4fe32
commit 119ce4b039
12 changed files with 429 additions and 109 deletions
+7 -2
View File
@@ -514,13 +514,18 @@ const mergeSectionConfig = (
export function getSectionConfig(
sectionKey: string,
level: "global" | "camera",
level: "global" | "camera" | "replay",
): SectionConfig {
const entry = sectionConfigs[sectionKey];
if (!entry) {
return {};
}
const overrides = level === "global" ? entry.global : entry.camera;
const overrides =
level === "global"
? entry.global
: level === "replay"
? entry.replay
: entry.camera;
return mergeSectionConfig(entry.base, overrides);
}