chore(web): checkpoint export fixes, operator routing and three-domain evidence
- Web engine CMake: apply WITH_WEB_USD_PYTHON to blender_web_engine_core, embed /usd resources, link pxr Python bindings after the core archive and whole-archive the monolithic OpenUSD archive. Fixes the wm.usd_export abort and restores Alembic/USD embedded export. - ?ui=web menus: fix inverted localOnly gating and route queueLocalDesktopOperator and nativeAdd through the desktop operator channel with a VIEW_3D context; non-mesh edit-mode selection uses the native VIEW3D_SELECT bridge. - Refresh WebEngine wasm/js artifacts, manual/course pages and the complete course video asset. - Record focused Chromium probes for Add/F3/parameters/modifier/UV/curve/deform, scene operations, OPFS save/reopen and worker restart. Evidence is NOT_CLAIMED. Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -55,6 +55,9 @@ export interface WebPreferencesIR {
|
||||
files: {
|
||||
note: string;
|
||||
};
|
||||
themes: {
|
||||
preset: "DARK" | "LIGHT" | "HIGH_CONTRAST";
|
||||
};
|
||||
}
|
||||
|
||||
export interface AreaLayoutRecord {
|
||||
@@ -119,6 +122,7 @@ export const DEFAULT_WEB_PREFERENCES: WebPreferencesIR = {
|
||||
usePreferencesSave: true,
|
||||
},
|
||||
files: { note: "OPFS 存储;本地 .blend 仅通过“下载 .blend”手动导出。" },
|
||||
themes: { preset: "DARK" },
|
||||
};
|
||||
|
||||
export interface PreferenceDefinition {
|
||||
@@ -176,7 +180,7 @@ export const PREFERENCE_DEFINITIONS: PreferenceDefinition[] = [
|
||||
{ path: "saveLoad.saveVersion", tab: "saveLoad", label: "保存版本数", kind: "number", min: 0, max: 32, step: 1, supported: false, desktopSource: "preferences.filepaths.save_version (1)" },
|
||||
{ path: "saveLoad.usePreferencesSave", tab: "saveLoad", label: "自动保存偏好设置", kind: "boolean", supported: true, desktopSource: "preferences.use_preferences_save (true)" },
|
||||
|
||||
{ path: "themes.note", tab: "themes", label: "主题", kind: "readonly", supported: false, desktopSource: "preferences.themes;Web 当前固定 dark" },
|
||||
{ path: "themes.preset", tab: "themes", label: "主题预设", kind: "select", options: [{ value: "DARK", label: "Dark" }, { value: "LIGHT", label: "Light" }, { value: "HIGH_CONTRAST", label: "High Contrast" }], supported: true, desktopSource: "preferences.themes" },
|
||||
{ path: "system.note", tab: "system", label: "系统 / 输入设备 / 扩展", kind: "readonly", supported: false, desktopSource: "preferences.system / inputs / addons / extensions" },
|
||||
];
|
||||
|
||||
@@ -205,6 +209,7 @@ export function validateWebPreferences(value: unknown): WebPreferencesIR {
|
||||
const n = record(value.navigation) ? value.navigation : {};
|
||||
const k = record(value.keymap) ? value.keymap : {};
|
||||
const s = record(value.saveLoad) ? value.saveLoad : {};
|
||||
const t = record(value.themes) ? value.themes : {};
|
||||
const bindings: Record<string, string> = {};
|
||||
if (record(k.bindings)) {
|
||||
for (const [key, chord] of Object.entries(k.bindings)) {
|
||||
@@ -254,6 +259,7 @@ export function validateWebPreferences(value: unknown): WebPreferencesIR {
|
||||
usePreferencesSave: bool(s.usePreferencesSave, d.saveLoad.usePreferencesSave),
|
||||
},
|
||||
files: { note: d.files.note },
|
||||
themes: { preset: t.preset === "LIGHT" || t.preset === "HIGH_CONTRAST" ? t.preset : "DARK" },
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user